function Mg(e,t){for(var n=0;nr[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const s of i.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).observe(document,{childList:!0,subtree:!0});function n(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerPolicy&&(i.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?i.credentials="include":o.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(o){if(o.ep)return;o.ep=!0;const i=n(o);fetch(o.href,i)}})();function sf(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var af={exports:{}},Bi={},lf={exports:{}},O={};/** * @license React * react.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var fo=Symbol.for("react.element"),Ag=Symbol.for("react.portal"),Lg=Symbol.for("react.fragment"),Dg=Symbol.for("react.strict_mode"),jg=Symbol.for("react.profiler"),Vg=Symbol.for("react.provider"),bg=Symbol.for("react.context"),Ig=Symbol.for("react.forward_ref"),_g=Symbol.for("react.suspense"),Og=Symbol.for("react.memo"),Fg=Symbol.for("react.lazy"),ju=Symbol.iterator;function zg(e){return e===null||typeof e!="object"?null:(e=ju&&e[ju]||e["@@iterator"],typeof e=="function"?e:null)}var uf={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},cf=Object.assign,df={};function dr(e,t,n){this.props=e,this.context=t,this.refs=df,this.updater=n||uf}dr.prototype.isReactComponent={};dr.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};dr.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function ff(){}ff.prototype=dr.prototype;function pl(e,t,n){this.props=e,this.context=t,this.refs=df,this.updater=n||uf}var hl=pl.prototype=new ff;hl.constructor=pl;cf(hl,dr.prototype);hl.isPureReactComponent=!0;var Vu=Array.isArray,pf=Object.prototype.hasOwnProperty,ml={current:null},hf={key:!0,ref:!0,__self:!0,__source:!0};function mf(e,t,n){var r,o={},i=null,s=null;if(t!=null)for(r in t.ref!==void 0&&(s=t.ref),t.key!==void 0&&(i=""+t.key),t)pf.call(t,r)&&!hf.hasOwnProperty(r)&&(o[r]=t[r]);var a=arguments.length-2;if(a===1)o.children=n;else if(1>>1,B=R[V];if(0>>1;Vo(Dn,_))_eo(on,Dn)?(R[V]=on,R[_e]=_,V=_e):(R[V]=Dn,R[Ie]=_,V=Ie);else if(_eo(on,_))R[V]=on,R[_e]=_,V=_e;else break e}}return L}function o(R,L){var _=R.sortIndex-L.sortIndex;return _!==0?_:R.id-L.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var s=Date,a=s.now();e.unstable_now=function(){return s.now()-a}}var l=[],u=[],c=1,d=null,f=3,m=!1,y=!1,v=!1,P=typeof setTimeout=="function"?setTimeout:null,g=typeof clearTimeout=="function"?clearTimeout:null,p=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function h(R){for(var L=n(u);L!==null;){if(L.callback===null)r(u);else if(L.startTime<=R)r(u),L.sortIndex=L.expirationTime,t(l,L);else break;L=n(u)}}function x(R){if(v=!1,h(R),!y)if(n(l)!==null)y=!0,z(C);else{var L=n(u);L!==null&&se(x,L.startTime-R)}}function C(R,L){y=!1,v&&(v=!1,g(E),E=-1),m=!0;var _=f;try{for(h(L),d=n(l);d!==null&&(!(d.expirationTime>L)||R&&!$());){var V=d.callback;if(typeof V=="function"){d.callback=null,f=d.priorityLevel;var B=V(d.expirationTime<=L);L=e.unstable_now(),typeof B=="function"?d.callback=B:d===n(l)&&r(l),h(L)}else r(l);d=n(l)}if(d!==null)var H=!0;else{var Ie=n(u);Ie!==null&&se(x,Ie.startTime-L),H=!1}return H}finally{d=null,f=_,m=!1}}var k=!1,T=null,E=-1,D=5,j=-1;function $(){return!(e.unstable_now()-jR||125V?(R.sortIndex=_,t(u,R),n(l)===null&&R===n(u)&&(v?(g(E),E=-1):v=!0,se(x,_-V))):(R.sortIndex=B,t(l,R),y||m||(y=!0,z(C))),R},e.unstable_shouldYield=$,e.unstable_wrapCallback=function(R){var L=f;return function(){var _=f;f=L;try{return R.apply(this,arguments)}finally{f=_}}}})(wf);xf.exports=wf;var qg=xf.exports;/** * @license React * react-dom.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var Jg=S,Ue=qg;function N(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),na=Object.prototype.hasOwnProperty,ev=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,Iu={},_u={};function tv(e){return na.call(_u,e)?!0:na.call(Iu,e)?!1:ev.test(e)?_u[e]=!0:(Iu[e]=!0,!1)}function nv(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function rv(e,t,n,r){if(t===null||typeof t>"u"||nv(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Me(e,t,n,r,o,i,s){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=s}var ye={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){ye[e]=new Me(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];ye[t]=new Me(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){ye[e]=new Me(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){ye[e]=new Me(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){ye[e]=new Me(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){ye[e]=new Me(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){ye[e]=new Me(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){ye[e]=new Me(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){ye[e]=new Me(e,5,!1,e.toLowerCase(),null,!1,!1)});var vl=/[\-:]([a-z])/g;function yl(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(vl,yl);ye[t]=new Me(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(vl,yl);ye[t]=new Me(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(vl,yl);ye[t]=new Me(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){ye[e]=new Me(e,1,!1,e.toLowerCase(),null,!1,!1)});ye.xlinkHref=new Me("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){ye[e]=new Me(e,1,!1,e.toLowerCase(),null,!0,!0)});function xl(e,t,n,r){var o=ye.hasOwnProperty(t)?ye[t]:null;(o!==null?o.type!==0:r||!(2a||o[s]!==i[a]){var l=` `+o[s].replace(" at new "," at ");return e.displayName&&l.includes("")&&(l=l.replace("",e.displayName)),l}while(1<=s&&0<=a);break}}}finally{ms=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Er(e):""}function ov(e){switch(e.tag){case 5:return Er(e.type);case 16:return Er("Lazy");case 13:return Er("Suspense");case 19:return Er("SuspenseList");case 0:case 2:case 15:return e=gs(e.type,!1),e;case 11:return e=gs(e.type.render,!1),e;case 1:return e=gs(e.type,!0),e;default:return""}}function sa(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case bn:return"Fragment";case Vn:return"Portal";case ra:return"Profiler";case wl:return"StrictMode";case oa:return"Suspense";case ia:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Cf:return(e.displayName||"Context")+".Consumer";case Pf:return(e._context.displayName||"Context")+".Provider";case Sl:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Pl:return t=e.displayName||null,t!==null?t:sa(e.type)||"Memo";case jt:t=e._payload,e=e._init;try{return sa(e(t))}catch{}}return null}function iv(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return sa(t);case 8:return t===wl?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Xt(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function kf(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function sv(e){var t=kf(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(s){r=""+s,i.call(this,s)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(s){r=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function ko(e){e._valueTracker||(e._valueTracker=sv(e))}function Ef(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=kf(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function li(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function aa(e,t){var n=t.checked;return re({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Fu(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Xt(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Nf(e,t){t=t.checked,t!=null&&xl(e,"checked",t,!1)}function la(e,t){Nf(e,t);var n=Xt(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?ua(e,t.type,n):t.hasOwnProperty("defaultValue")&&ua(e,t.type,Xt(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function zu(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function ua(e,t,n){(t!=="number"||li(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Nr=Array.isArray;function Xn(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=Eo.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Hr(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Lr={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},av=["Webkit","ms","Moz","O"];Object.keys(Lr).forEach(function(e){av.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Lr[t]=Lr[e]})});function Lf(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Lr.hasOwnProperty(e)&&Lr[e]?(""+t).trim():t+"px"}function Df(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=Lf(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var lv=re({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function fa(e,t){if(t){if(lv[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(N(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(N(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(N(61))}if(t.style!=null&&typeof t.style!="object")throw Error(N(62))}}function pa(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var ha=null;function Cl(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var ma=null,Zn=null,qn=null;function $u(e){if(e=mo(e)){if(typeof ma!="function")throw Error(N(280));var t=e.stateNode;t&&(t=Gi(t),ma(e.stateNode,e.type,t))}}function jf(e){Zn?qn?qn.push(e):qn=[e]:Zn=e}function Vf(){if(Zn){var e=Zn,t=qn;if(qn=Zn=null,$u(e),t)for(e=0;e>>=0,e===0?32:31-(xv(e)/wv|0)|0}var No=64,Ro=4194304;function Rr(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function fi(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,s=n&268435455;if(s!==0){var a=s&~o;a!==0?r=Rr(a):(i&=s,i!==0&&(r=Rr(i)))}else s=n&~o,s!==0?r=Rr(s):i!==0&&(r=Rr(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,i=t&-t,o>=i||o===16&&(i&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function po(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-st(t),e[t]=n}function Tv(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=jr),qu=String.fromCharCode(32),Ju=!1;function ep(e,t){switch(e){case"keyup":return qv.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function tp(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var In=!1;function ey(e,t){switch(e){case"compositionend":return tp(t);case"keypress":return t.which!==32?null:(Ju=!0,qu);case"textInput":return e=t.data,e===qu&&Ju?null:e;default:return null}}function ty(e,t){if(In)return e==="compositionend"||!Ll&&ep(e,t)?(e=qf(),Xo=Rl=Ot=null,In=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=rc(n)}}function ip(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?ip(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function sp(){for(var e=window,t=li();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=li(e.document)}return t}function Dl(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function cy(e){var t=sp(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&ip(n.ownerDocument.documentElement,n)){if(r!==null&&Dl(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=n.textContent.length,i=Math.min(r.start,o);r=r.end===void 0?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=oc(n,i);var s=oc(n,r);o&&s&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,_n=null,Sa=null,br=null,Pa=!1;function ic(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Pa||_n==null||_n!==li(r)||(r=_n,"selectionStart"in r&&Dl(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),br&&Zr(br,r)||(br=r,r=mi(Sa,"onSelect"),0zn||(e.current=Ra[zn],Ra[zn]=null,zn--)}function G(e,t){zn++,Ra[zn]=e.current,e.current=t}var Zt={},Ce=tn(Zt),De=tn(!1),xn=Zt;function rr(e,t){var n=e.type.contextTypes;if(!n)return Zt;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in n)o[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function je(e){return e=e.childContextTypes,e!=null}function vi(){Y(De),Y(Ce)}function fc(e,t,n){if(Ce.current!==Zt)throw Error(N(168));G(Ce,t),G(De,n)}function mp(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(N(108,iv(e)||"Unknown",o));return re({},n,r)}function yi(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Zt,xn=Ce.current,G(Ce,e),G(De,De.current),!0}function pc(e,t,n){var r=e.stateNode;if(!r)throw Error(N(169));n?(e=mp(e,t,xn),r.__reactInternalMemoizedMergedChildContext=e,Y(De),Y(Ce),G(Ce,e)):Y(De),G(De,n)}var vt=null,Ki=!1,As=!1;function gp(e){vt===null?vt=[e]:vt.push(e)}function Py(e){Ki=!0,gp(e)}function nn(){if(!As&&vt!==null){As=!0;var e=0,t=W;try{var n=vt;for(W=1;e>=s,o-=s,yt=1<<32-st(t)+o|n<E?(D=T,T=null):D=T.sibling;var j=f(g,T,h[E],x);if(j===null){T===null&&(T=D);break}e&&T&&j.alternate===null&&t(g,T),p=i(j,p,E),k===null?C=j:k.sibling=j,k=j,T=D}if(E===h.length)return n(g,T),q&&ln(g,E),C;if(T===null){for(;EE?(D=T,T=null):D=T.sibling;var $=f(g,T,j.value,x);if($===null){T===null&&(T=D);break}e&&T&&$.alternate===null&&t(g,T),p=i($,p,E),k===null?C=$:k.sibling=$,k=$,T=D}if(j.done)return n(g,T),q&&ln(g,E),C;if(T===null){for(;!j.done;E++,j=h.next())j=d(g,j.value,x),j!==null&&(p=i(j,p,E),k===null?C=j:k.sibling=j,k=j);return q&&ln(g,E),C}for(T=r(g,T);!j.done;E++,j=h.next())j=m(T,g,E,j.value,x),j!==null&&(e&&j.alternate!==null&&T.delete(j.key===null?E:j.key),p=i(j,p,E),k===null?C=j:k.sibling=j,k=j);return e&&T.forEach(function(b){return t(g,b)}),q&&ln(g,E),C}function P(g,p,h,x){if(typeof h=="object"&&h!==null&&h.type===bn&&h.key===null&&(h=h.props.children),typeof h=="object"&&h!==null){switch(h.$$typeof){case To:e:{for(var C=h.key,k=p;k!==null;){if(k.key===C){if(C=h.type,C===bn){if(k.tag===7){n(g,k.sibling),p=o(k,h.props.children),p.return=g,g=p;break e}}else if(k.elementType===C||typeof C=="object"&&C!==null&&C.$$typeof===jt&&gc(C)===k.type){n(g,k.sibling),p=o(k,h.props),p.ref=xr(g,k,h),p.return=g,g=p;break e}n(g,k);break}else t(g,k);k=k.sibling}h.type===bn?(p=yn(h.props.children,g.mode,x,h.key),p.return=g,g=p):(x=oi(h.type,h.key,h.props,null,g.mode,x),x.ref=xr(g,p,h),x.return=g,g=x)}return s(g);case Vn:e:{for(k=h.key;p!==null;){if(p.key===k)if(p.tag===4&&p.stateNode.containerInfo===h.containerInfo&&p.stateNode.implementation===h.implementation){n(g,p.sibling),p=o(p,h.children||[]),p.return=g,g=p;break e}else{n(g,p);break}else t(g,p);p=p.sibling}p=Os(h,g.mode,x),p.return=g,g=p}return s(g);case jt:return k=h._init,P(g,p,k(h._payload),x)}if(Nr(h))return y(g,p,h,x);if(hr(h))return v(g,p,h,x);bo(g,h)}return typeof h=="string"&&h!==""||typeof h=="number"?(h=""+h,p!==null&&p.tag===6?(n(g,p.sibling),p=o(p,h),p.return=g,g=p):(n(g,p),p=_s(h,g.mode,x),p.return=g,g=p),s(g)):n(g,p)}return P}var ir=wp(!0),Sp=wp(!1),Si=tn(null),Pi=null,$n=null,Il=null;function _l(){Il=$n=Pi=null}function Ol(e){var t=Si.current;Y(Si),e._currentValue=t}function La(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function er(e,t){Pi=e,Il=$n=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Le=!0),e.firstContext=null)}function Je(e){var t=e._currentValue;if(Il!==e)if(e={context:e,memoizedValue:t,next:null},$n===null){if(Pi===null)throw Error(N(308));$n=e,Pi.dependencies={lanes:0,firstContext:e}}else $n=$n.next=e;return t}var pn=null;function Fl(e){pn===null?pn=[e]:pn.push(e)}function Pp(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,Fl(t)):(n.next=o.next,o.next=n),t.interleaved=n,Et(e,r)}function Et(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var Vt=!1;function zl(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Cp(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function St(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Wt(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,U&2){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,Et(e,n)}return o=r.interleaved,o===null?(t.next=t,Fl(r)):(t.next=o.next,o.next=t),r.interleaved=t,Et(e,n)}function qo(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,kl(e,n)}}function vc(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var o=null,i=null;if(n=n.firstBaseUpdate,n!==null){do{var s={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};i===null?o=i=s:i=i.next=s,n=n.next}while(n!==null);i===null?o=i=t:i=i.next=t}else o=i=t;n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Ci(e,t,n,r){var o=e.updateQueue;Vt=!1;var i=o.firstBaseUpdate,s=o.lastBaseUpdate,a=o.shared.pending;if(a!==null){o.shared.pending=null;var l=a,u=l.next;l.next=null,s===null?i=u:s.next=u,s=l;var c=e.alternate;c!==null&&(c=c.updateQueue,a=c.lastBaseUpdate,a!==s&&(a===null?c.firstBaseUpdate=u:a.next=u,c.lastBaseUpdate=l))}if(i!==null){var d=o.baseState;s=0,c=u=l=null,a=i;do{var f=a.lane,m=a.eventTime;if((r&f)===f){c!==null&&(c=c.next={eventTime:m,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var y=e,v=a;switch(f=t,m=n,v.tag){case 1:if(y=v.payload,typeof y=="function"){d=y.call(m,d,f);break e}d=y;break e;case 3:y.flags=y.flags&-65537|128;case 0:if(y=v.payload,f=typeof y=="function"?y.call(m,d,f):y,f==null)break e;d=re({},d,f);break e;case 2:Vt=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,f=o.effects,f===null?o.effects=[a]:f.push(a))}else m={eventTime:m,lane:f,tag:a.tag,payload:a.payload,callback:a.callback,next:null},c===null?(u=c=m,l=d):c=c.next=m,s|=f;if(a=a.next,a===null){if(a=o.shared.pending,a===null)break;f=a,a=f.next,f.next=null,o.lastBaseUpdate=f,o.shared.pending=null}}while(1);if(c===null&&(l=d),o.baseState=l,o.firstBaseUpdate=u,o.lastBaseUpdate=c,t=o.shared.interleaved,t!==null){o=t;do s|=o.lane,o=o.next;while(o!==t)}else i===null&&(o.shared.lanes=0);Pn|=s,e.lanes=s,e.memoizedState=d}}function yc(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=Ds.transition;Ds.transition={};try{e(!1),t()}finally{W=n,Ds.transition=r}}function zp(){return et().memoizedState}function Ey(e,t,n){var r=Gt(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Bp(e))Up(t,n);else if(n=Pp(e,t,n,r),n!==null){var o=Ne();at(n,e,r,o),$p(n,t,r)}}function Ny(e,t,n){var r=Gt(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Bp(e))Up(t,o);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var s=t.lastRenderedState,a=i(s,n);if(o.hasEagerState=!0,o.eagerState=a,lt(a,s)){var l=t.interleaved;l===null?(o.next=o,Fl(t)):(o.next=l.next,l.next=o),t.interleaved=o;return}}catch{}finally{}n=Pp(e,t,o,r),n!==null&&(o=Ne(),at(n,e,r,o),$p(n,t,r))}}function Bp(e){var t=e.alternate;return e===ne||t!==null&&t===ne}function Up(e,t){Ir=ki=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function $p(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,kl(e,n)}}var Ei={readContext:Je,useCallback:xe,useContext:xe,useEffect:xe,useImperativeHandle:xe,useInsertionEffect:xe,useLayoutEffect:xe,useMemo:xe,useReducer:xe,useRef:xe,useState:xe,useDebugValue:xe,useDeferredValue:xe,useTransition:xe,useMutableSource:xe,useSyncExternalStore:xe,useId:xe,unstable_isNewReconciler:!1},Ry={readContext:Je,useCallback:function(e,t){return ct().memoizedState=[e,t===void 0?null:t],e},useContext:Je,useEffect:wc,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,ei(4194308,4,bp.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ei(4194308,4,e,t)},useInsertionEffect:function(e,t){return ei(4,2,e,t)},useMemo:function(e,t){var n=ct();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=ct();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=Ey.bind(null,ne,e),[r.memoizedState,e]},useRef:function(e){var t=ct();return e={current:e},t.memoizedState=e},useState:xc,useDebugValue:Ql,useDeferredValue:function(e){return ct().memoizedState=e},useTransition:function(){var e=xc(!1),t=e[0];return e=ky.bind(null,e[1]),ct().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=ne,o=ct();if(q){if(n===void 0)throw Error(N(407));n=n()}else{if(n=t(),me===null)throw Error(N(349));Sn&30||Np(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,wc(Mp.bind(null,r,i,e),[e]),r.flags|=2048,io(9,Rp.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=ct(),t=me.identifierPrefix;if(q){var n=xt,r=yt;n=(r&~(1<<32-st(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=ro++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=s.createElement(n,{is:r.is}):(e=s.createElement(n),n==="select"&&(s=e,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):e=s.createElementNS(e,n),e[dt]=t,e[eo]=r,Jp(e,t,!1,!1),t.stateNode=e;e:{switch(s=pa(n,r),n){case"dialog":Q("cancel",e),Q("close",e),o=r;break;case"iframe":case"object":case"embed":Q("load",e),o=r;break;case"video":case"audio":for(o=0;olr&&(t.flags|=128,r=!0,wr(i,!1),t.lanes=4194304)}else{if(!r)if(e=Ti(s),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),wr(i,!0),i.tail===null&&i.tailMode==="hidden"&&!s.alternate&&!q)return we(t),null}else 2*le()-i.renderingStartTime>lr&&n!==1073741824&&(t.flags|=128,r=!0,wr(i,!1),t.lanes=4194304);i.isBackwards?(s.sibling=t.child,t.child=s):(n=i.last,n!==null?n.sibling=s:t.child=s,i.last=s)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=le(),t.sibling=null,n=ee.current,G(ee,r?n&1|2:n&1),t):(we(t),null);case 22:case 23:return eu(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Oe&1073741824&&(we(t),t.subtreeFlags&6&&(t.flags|=8192)):we(t),null;case 24:return null;case 25:return null}throw Error(N(156,t.tag))}function Iy(e,t){switch(Vl(t),t.tag){case 1:return je(t.type)&&vi(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return sr(),Y(De),Y(Ce),$l(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Ul(t),null;case 13:if(Y(ee),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(N(340));or()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Y(ee),null;case 4:return sr(),null;case 10:return Ol(t.type._context),null;case 22:case 23:return eu(),null;case 24:return null;default:return null}}var _o=!1,Pe=!1,_y=typeof WeakSet=="function"?WeakSet:Set,M=null;function Wn(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){oe(e,t,r)}else n.current=null}function za(e,t,n){try{n()}catch(r){oe(e,t,r)}}var Lc=!1;function Oy(e,t){if(Ca=pi,e=sp(),Dl(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var o=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var s=0,a=-1,l=-1,u=0,c=0,d=e,f=null;t:for(;;){for(var m;d!==n||o!==0&&d.nodeType!==3||(a=s+o),d!==i||r!==0&&d.nodeType!==3||(l=s+r),d.nodeType===3&&(s+=d.nodeValue.length),(m=d.firstChild)!==null;)f=d,d=m;for(;;){if(d===e)break t;if(f===n&&++u===o&&(a=s),f===i&&++c===r&&(l=s),(m=d.nextSibling)!==null)break;d=f,f=d.parentNode}d=m}n=a===-1||l===-1?null:{start:a,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(Ta={focusedElem:e,selectionRange:n},pi=!1,M=t;M!==null;)if(t=M,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,M=e;else for(;M!==null;){t=M;try{var y=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(y!==null){var v=y.memoizedProps,P=y.memoizedState,g=t.stateNode,p=g.getSnapshotBeforeUpdate(t.elementType===t.type?v:rt(t.type,v),P);g.__reactInternalSnapshotBeforeUpdate=p}break;case 3:var h=t.stateNode.containerInfo;h.nodeType===1?h.textContent="":h.nodeType===9&&h.documentElement&&h.removeChild(h.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(N(163))}}catch(x){oe(t,t.return,x)}if(e=t.sibling,e!==null){e.return=t.return,M=e;break}M=t.return}return y=Lc,Lc=!1,y}function _r(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,i!==void 0&&za(t,n,i)}o=o.next}while(o!==r)}}function Xi(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Ba(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function nh(e){var t=e.alternate;t!==null&&(e.alternate=null,nh(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[dt],delete t[eo],delete t[Na],delete t[wy],delete t[Sy])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function rh(e){return e.tag===5||e.tag===3||e.tag===4}function Dc(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||rh(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Ua(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=gi));else if(r!==4&&(e=e.child,e!==null))for(Ua(e,t,n),e=e.sibling;e!==null;)Ua(e,t,n),e=e.sibling}function $a(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for($a(e,t,n),e=e.sibling;e!==null;)$a(e,t,n),e=e.sibling}var ge=null,ot=!1;function At(e,t,n){for(n=n.child;n!==null;)oh(e,t,n),n=n.sibling}function oh(e,t,n){if(ft&&typeof ft.onCommitFiberUnmount=="function")try{ft.onCommitFiberUnmount(Ui,n)}catch{}switch(n.tag){case 5:Pe||Wn(n,t);case 6:var r=ge,o=ot;ge=null,At(e,t,n),ge=r,ot=o,ge!==null&&(ot?(e=ge,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):ge.removeChild(n.stateNode));break;case 18:ge!==null&&(ot?(e=ge,n=n.stateNode,e.nodeType===8?Ms(e.parentNode,n):e.nodeType===1&&Ms(e,n),Yr(e)):Ms(ge,n.stateNode));break;case 4:r=ge,o=ot,ge=n.stateNode.containerInfo,ot=!0,At(e,t,n),ge=r,ot=o;break;case 0:case 11:case 14:case 15:if(!Pe&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var i=o,s=i.destroy;i=i.tag,s!==void 0&&(i&2||i&4)&&za(n,t,s),o=o.next}while(o!==r)}At(e,t,n);break;case 1:if(!Pe&&(Wn(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){oe(n,t,a)}At(e,t,n);break;case 21:At(e,t,n);break;case 22:n.mode&1?(Pe=(r=Pe)||n.memoizedState!==null,At(e,t,n),Pe=r):At(e,t,n);break;default:At(e,t,n)}}function jc(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new _y),t.forEach(function(r){var o=Ky.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function tt(e,t){var n=t.deletions;if(n!==null)for(var r=0;ro&&(o=s),r&=~i}if(r=o,r=le()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*zy(r/1960))-r,10e?16:e,Ft===null)var r=!1;else{if(e=Ft,Ft=null,Mi=0,U&6)throw Error(N(331));var o=U;for(U|=4,M=e.current;M!==null;){var i=M,s=i.child;if(M.flags&16){var a=i.deletions;if(a!==null){for(var l=0;lle()-ql?vn(e,0):Zl|=n),Ve(e,t)}function fh(e,t){t===0&&(e.mode&1?(t=Ro,Ro<<=1,!(Ro&130023424)&&(Ro=4194304)):t=1);var n=Ne();e=Et(e,t),e!==null&&(po(e,t,n),Ve(e,n))}function Gy(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),fh(e,n)}function Ky(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(N(314))}r!==null&&r.delete(t),fh(e,n)}var ph;ph=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||De.current)Le=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Le=!1,Vy(e,t,n);Le=!!(e.flags&131072)}else Le=!1,q&&t.flags&1048576&&vp(t,wi,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;ti(e,t),e=t.pendingProps;var o=rr(t,Ce.current);er(t,n),o=Hl(null,t,r,e,o,n);var i=Gl();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,je(r)?(i=!0,yi(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,zl(t),o.updater=Yi,t.stateNode=o,o._reactInternals=t,ja(t,r,e,n),t=Ia(null,t,r,!0,i,n)):(t.tag=0,q&&i&&jl(t),Ee(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(ti(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=Yy(r),e=rt(r,e),o){case 0:t=ba(null,t,r,e,n);break e;case 1:t=Rc(null,t,r,e,n);break e;case 11:t=Ec(null,t,r,e,n);break e;case 14:t=Nc(null,t,r,rt(r.type,e),n);break e}throw Error(N(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:rt(r,o),ba(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:rt(r,o),Rc(e,t,r,o,n);case 3:e:{if(Xp(t),e===null)throw Error(N(387));r=t.pendingProps,i=t.memoizedState,o=i.element,Cp(e,t),Ci(t,r,null,n);var s=t.memoizedState;if(r=s.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){o=ar(Error(N(423)),t),t=Mc(e,t,r,n,o);break e}else if(r!==o){o=ar(Error(N(424)),t),t=Mc(e,t,r,n,o);break e}else for(ze=$t(t.stateNode.containerInfo.firstChild),Be=t,q=!0,it=null,n=Sp(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(or(),r===o){t=Nt(e,t,n);break e}Ee(e,t,r,n)}t=t.child}return t;case 5:return Tp(t),e===null&&Aa(t),r=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,s=o.children,ka(r,o)?s=null:i!==null&&ka(r,i)&&(t.flags|=32),Yp(e,t),Ee(e,t,s,n),t.child;case 6:return e===null&&Aa(t),null;case 13:return Zp(e,t,n);case 4:return Bl(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=ir(t,null,r,n):Ee(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:rt(r,o),Ec(e,t,r,o,n);case 7:return Ee(e,t,t.pendingProps,n),t.child;case 8:return Ee(e,t,t.pendingProps.children,n),t.child;case 12:return Ee(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,i=t.memoizedProps,s=o.value,G(Si,r._currentValue),r._currentValue=s,i!==null)if(lt(i.value,s)){if(i.children===o.children&&!De.current){t=Nt(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var a=i.dependencies;if(a!==null){s=i.child;for(var l=a.firstContext;l!==null;){if(l.context===r){if(i.tag===1){l=St(-1,n&-n),l.tag=2;var u=i.updateQueue;if(u!==null){u=u.shared;var c=u.pending;c===null?l.next=l:(l.next=c.next,c.next=l),u.pending=l}}i.lanes|=n,l=i.alternate,l!==null&&(l.lanes|=n),La(i.return,n,t),a.lanes|=n;break}l=l.next}}else if(i.tag===10)s=i.type===t.type?null:i.child;else if(i.tag===18){if(s=i.return,s===null)throw Error(N(341));s.lanes|=n,a=s.alternate,a!==null&&(a.lanes|=n),La(s,n,t),s=i.sibling}else s=i.child;if(s!==null)s.return=i;else for(s=i;s!==null;){if(s===t){s=null;break}if(i=s.sibling,i!==null){i.return=s.return,s=i;break}s=s.return}i=s}Ee(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,er(t,n),o=Je(o),r=r(o),t.flags|=1,Ee(e,t,r,n),t.child;case 14:return r=t.type,o=rt(r,t.pendingProps),o=rt(r.type,o),Nc(e,t,r,o,n);case 15:return Kp(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:rt(r,o),ti(e,t),t.tag=1,je(r)?(e=!0,yi(t)):e=!1,er(t,n),Wp(t,r,o),ja(t,r,o,n),Ia(null,t,r,!0,e,n);case 19:return qp(e,t,n);case 22:return Qp(e,t,n)}throw Error(N(156,t.tag))};function hh(e,t){return Bf(e,t)}function Qy(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ze(e,t,n,r){return new Qy(e,t,n,r)}function nu(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Yy(e){if(typeof e=="function")return nu(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Sl)return 11;if(e===Pl)return 14}return 2}function Kt(e,t){var n=e.alternate;return n===null?(n=Ze(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function oi(e,t,n,r,o,i){var s=2;if(r=e,typeof e=="function")nu(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case bn:return yn(n.children,o,i,t);case wl:s=8,o|=8;break;case ra:return e=Ze(12,n,t,o|2),e.elementType=ra,e.lanes=i,e;case oa:return e=Ze(13,n,t,o),e.elementType=oa,e.lanes=i,e;case ia:return e=Ze(19,n,t,o),e.elementType=ia,e.lanes=i,e;case Tf:return qi(n,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Pf:s=10;break e;case Cf:s=9;break e;case Sl:s=11;break e;case Pl:s=14;break e;case jt:s=16,r=null;break e}throw Error(N(130,e==null?e:typeof e,""))}return t=Ze(s,n,t,o),t.elementType=e,t.type=r,t.lanes=i,t}function yn(e,t,n,r){return e=Ze(7,e,r,t),e.lanes=n,e}function qi(e,t,n,r){return e=Ze(22,e,r,t),e.elementType=Tf,e.lanes=n,e.stateNode={isHidden:!1},e}function _s(e,t,n){return e=Ze(6,e,null,t),e.lanes=n,e}function Os(e,t,n){return t=Ze(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Xy(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=ys(0),this.expirationTimes=ys(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ys(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function ru(e,t,n,r,o,i,s,a,l){return e=new Xy(e,t,n,a,l),t===1?(t=1,i===!0&&(t|=8)):t=0,i=Ze(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},zl(i),e}function Zy(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(yh)}catch(e){console.error(e)}}yh(),yf.exports=We;var rs=yf.exports;const n0=sf(rs);var Bc=rs;ta.createRoot=Bc.createRoot,ta.hydrateRoot=Bc.hydrateRoot;const xh=S.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),os=S.createContext({}),au=S.createContext(null),is=typeof document<"u",r0=is?S.useLayoutEffect:S.useEffect,wh=S.createContext({strict:!1}),lu=e=>e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),o0="framerAppearId",Sh="data-"+lu(o0);function i0(e,t,n,r){const{visualElement:o}=S.useContext(os),i=S.useContext(wh),s=S.useContext(au),a=S.useContext(xh).reducedMotion,l=S.useRef();r=r||i.renderer,!l.current&&r&&(l.current=r(e,{visualState:t,parent:o,props:n,presenceContext:s,blockInitialAnimation:s?s.initial===!1:!1,reducedMotionConfig:a}));const u=l.current;S.useInsertionEffect(()=>{u&&u.update(n,s)});const c=S.useRef(!!(n[Sh]&&!window.HandoffComplete));return r0(()=>{u&&(u.render(),c.current&&u.animationState&&u.animationState.animateChanges())}),S.useEffect(()=>{u&&(u.updateFeatures(),!c.current&&u.animationState&&u.animationState.animateChanges(),c.current&&(c.current=!1,window.HandoffComplete=!0))}),u}function Gn(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function s0(e,t,n){return S.useCallback(r=>{r&&e.mount&&e.mount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):Gn(n)&&(n.current=r))},[t])}function ao(e){return typeof e=="string"||Array.isArray(e)}function ss(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}const uu=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],cu=["initial",...uu];function as(e){return ss(e.animate)||cu.some(t=>ao(e[t]))}function Ph(e){return!!(as(e)||e.variants)}function a0(e,t){if(as(e)){const{initial:n,animate:r}=e;return{initial:n===!1||ao(n)?n:void 0,animate:ao(r)?r:void 0}}return e.inherit!==!1?t:{}}function l0(e){const{initial:t,animate:n}=a0(e,S.useContext(os));return S.useMemo(()=>({initial:t,animate:n}),[Uc(t),Uc(n)])}function Uc(e){return Array.isArray(e)?e.join(" "):e}const $c={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},lo={};for(const e in $c)lo[e]={isEnabled:t=>$c[e].some(n=>!!t[n])};function u0(e){for(const t in e)lo[t]={...lo[t],...e[t]}}const Ch=S.createContext({}),Th=S.createContext({}),c0=Symbol.for("motionComponentSymbol");function d0({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:o}){e&&u0(e);function i(a,l){let u;const c={...S.useContext(xh),...a,layoutId:f0(a)},{isStatic:d}=c,f=l0(a),m=r(a,d);if(!d&&is){f.visualElement=i0(o,m,c,t);const y=S.useContext(Th),v=S.useContext(wh).strict;f.visualElement&&(u=f.visualElement.loadFeatures(c,v,e,y))}return S.createElement(os.Provider,{value:f},u&&f.visualElement?S.createElement(u,{visualElement:f.visualElement,...c}):null,n(o,a,s0(m,f.visualElement,l),m,d,f.visualElement))}const s=S.forwardRef(i);return s[c0]=o,s}function f0({layoutId:e}){const t=S.useContext(Ch).id;return t&&e!==void 0?t+"-"+e:e}function p0(e){function t(r,o={}){return d0(e(r,o))}if(typeof Proxy>"u")return t;const n=new Map;return new Proxy(t,{get:(r,o)=>(n.has(o)||n.set(o,t(o)),n.get(o))})}const h0=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function du(e){return typeof e!="string"||e.includes("-")?!1:!!(h0.indexOf(e)>-1||/[A-Z]/.test(e))}const Di={};function m0(e){Object.assign(Di,e)}const vo=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Rn=new Set(vo);function kh(e,{layout:t,layoutId:n}){return Rn.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!Di[e]||e==="opacity")}const be=e=>!!(e&&e.getVelocity),g0={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},v0=vo.length;function y0(e,{enableHardwareAcceleration:t=!0,allowTransformNone:n=!0},r,o){let i="";for(let s=0;st=>typeof t=="string"&&t.startsWith(e),Nh=Eh("--"),Qa=Eh("var(--"),x0=/var\s*\(\s*--[\w-]+(\s*,\s*(?:(?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\)/g,w0=(e,t)=>t&&typeof e=="number"?t.transform(e):e,qt=(e,t,n)=>Math.min(Math.max(n,e),t),Mn={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},zr={...Mn,transform:e=>qt(0,1,e)},zo={...Mn,default:1},Br=e=>Math.round(e*1e5)/1e5,ls=/(-)?([\d]*\.?[\d])+/g,Rh=/(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,S0=/^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function yo(e){return typeof e=="string"}const xo=e=>({test:t=>yo(t)&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Dt=xo("deg"),ht=xo("%"),I=xo("px"),P0=xo("vh"),C0=xo("vw"),Wc={...ht,parse:e=>ht.parse(e)/100,transform:e=>ht.transform(e*100)},Hc={...Mn,transform:Math.round},Mh={borderWidth:I,borderTopWidth:I,borderRightWidth:I,borderBottomWidth:I,borderLeftWidth:I,borderRadius:I,radius:I,borderTopLeftRadius:I,borderTopRightRadius:I,borderBottomRightRadius:I,borderBottomLeftRadius:I,width:I,maxWidth:I,height:I,maxHeight:I,size:I,top:I,right:I,bottom:I,left:I,padding:I,paddingTop:I,paddingRight:I,paddingBottom:I,paddingLeft:I,margin:I,marginTop:I,marginRight:I,marginBottom:I,marginLeft:I,rotate:Dt,rotateX:Dt,rotateY:Dt,rotateZ:Dt,scale:zo,scaleX:zo,scaleY:zo,scaleZ:zo,skew:Dt,skewX:Dt,skewY:Dt,distance:I,translateX:I,translateY:I,translateZ:I,x:I,y:I,z:I,perspective:I,transformPerspective:I,opacity:zr,originX:Wc,originY:Wc,originZ:I,zIndex:Hc,fillOpacity:zr,strokeOpacity:zr,numOctaves:Hc};function fu(e,t,n,r){const{style:o,vars:i,transform:s,transformOrigin:a}=e;let l=!1,u=!1,c=!0;for(const d in t){const f=t[d];if(Nh(d)){i[d]=f;continue}const m=Mh[d],y=w0(f,m);if(Rn.has(d)){if(l=!0,s[d]=y,!c)continue;f!==(m.default||0)&&(c=!1)}else d.startsWith("origin")?(u=!0,a[d]=y):o[d]=y}if(t.transform||(l||r?o.transform=y0(e.transform,n,c,r):o.transform&&(o.transform="none")),u){const{originX:d="50%",originY:f="50%",originZ:m=0}=a;o.transformOrigin=`${d} ${f} ${m}`}}const pu=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Ah(e,t,n){for(const r in t)!be(t[r])&&!kh(r,n)&&(e[r]=t[r])}function T0({transformTemplate:e},t,n){return S.useMemo(()=>{const r=pu();return fu(r,t,{enableHardwareAcceleration:!n},e),Object.assign({},r.vars,r.style)},[t])}function k0(e,t,n){const r=e.style||{},o={};return Ah(o,r,e),Object.assign(o,T0(e,t,n)),e.transformValues?e.transformValues(o):o}function E0(e,t,n){const r={},o=k0(e,t,n);return e.drag&&e.dragListener!==!1&&(r.draggable=!1,o.userSelect=o.WebkitUserSelect=o.WebkitTouchCallout="none",o.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(r.tabIndex=0),r.style=o,r}const N0=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","transformValues","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function ji(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||N0.has(e)}let Lh=e=>!ji(e);function R0(e){e&&(Lh=t=>t.startsWith("on")?!ji(t):e(t))}try{R0(require("@emotion/is-prop-valid").default)}catch{}function M0(e,t,n){const r={};for(const o in e)o==="values"&&typeof e.values=="object"||(Lh(o)||n===!0&&ji(o)||!t&&!ji(o)||e.draggable&&o.startsWith("onDrag"))&&(r[o]=e[o]);return r}function Gc(e,t,n){return typeof e=="string"?e:I.transform(t+n*e)}function A0(e,t,n){const r=Gc(t,e.x,e.width),o=Gc(n,e.y,e.height);return`${r} ${o}`}const L0={offset:"stroke-dashoffset",array:"stroke-dasharray"},D0={offset:"strokeDashoffset",array:"strokeDasharray"};function j0(e,t,n=1,r=0,o=!0){e.pathLength=1;const i=o?L0:D0;e[i.offset]=I.transform(-r);const s=I.transform(t),a=I.transform(n);e[i.array]=`${s} ${a}`}function hu(e,{attrX:t,attrY:n,attrScale:r,originX:o,originY:i,pathLength:s,pathSpacing:a=1,pathOffset:l=0,...u},c,d,f){if(fu(e,u,c,f),d){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:m,style:y,dimensions:v}=e;m.transform&&(v&&(y.transform=m.transform),delete m.transform),v&&(o!==void 0||i!==void 0||y.transform)&&(y.transformOrigin=A0(v,o!==void 0?o:.5,i!==void 0?i:.5)),t!==void 0&&(m.x=t),n!==void 0&&(m.y=n),r!==void 0&&(m.scale=r),s!==void 0&&j0(m,s,a,l,!1)}const Dh=()=>({...pu(),attrs:{}}),mu=e=>typeof e=="string"&&e.toLowerCase()==="svg";function V0(e,t,n,r){const o=S.useMemo(()=>{const i=Dh();return hu(i,t,{enableHardwareAcceleration:!1},mu(r),e.transformTemplate),{...i.attrs,style:{...i.style}}},[t]);if(e.style){const i={};Ah(i,e.style,e),o.style={...i,...o.style}}return o}function b0(e=!1){return(n,r,o,{latestValues:i},s)=>{const l=(du(n)?V0:E0)(r,i,s,n),c={...M0(r,typeof n=="string",e),...l,ref:o},{children:d}=r,f=S.useMemo(()=>be(d)?d.get():d,[d]);return S.createElement(n,{...c,children:f})}}function jh(e,{style:t,vars:n},r,o){Object.assign(e.style,t,o&&o.getProjectionStyles(r));for(const i in n)e.style.setProperty(i,n[i])}const Vh=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function bh(e,t,n,r){jh(e,t,void 0,r);for(const o in t.attrs)e.setAttribute(Vh.has(o)?o:lu(o),t.attrs[o])}function gu(e,t){const{style:n}=e,r={};for(const o in n)(be(n[o])||t.style&&be(t.style[o])||kh(o,e))&&(r[o]=n[o]);return r}function Ih(e,t){const n=gu(e,t);for(const r in e)if(be(e[r])||be(t[r])){const o=vo.indexOf(r)!==-1?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r;n[o]=e[r]}return n}function vu(e,t,n,r={},o={}){return typeof t=="function"&&(t=t(n!==void 0?n:e.custom,r,o)),typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"&&(t=t(n!==void 0?n:e.custom,r,o)),t}function I0(e){const t=S.useRef(null);return t.current===null&&(t.current=e()),t.current}const Vi=e=>Array.isArray(e),_0=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),O0=e=>Vi(e)?e[e.length-1]||0:e;function ii(e){const t=be(e)?e.get():e;return _0(t)?t.toValue():t}function F0({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:n},r,o,i){const s={latestValues:z0(r,o,i,e),renderState:t()};return n&&(s.mount=a=>n(r,a,s)),s}const _h=e=>(t,n)=>{const r=S.useContext(os),o=S.useContext(au),i=()=>F0(e,t,r,o);return n?i():I0(i)};function z0(e,t,n,r){const o={},i=r(e,{});for(const f in i)o[f]=ii(i[f]);let{initial:s,animate:a}=e;const l=as(e),u=Ph(e);t&&u&&!l&&e.inherit!==!1&&(s===void 0&&(s=t.initial),a===void 0&&(a=t.animate));let c=n?n.initial===!1:!1;c=c||s===!1;const d=c?a:s;return d&&typeof d!="boolean"&&!ss(d)&&(Array.isArray(d)?d:[d]).forEach(m=>{const y=vu(e,m);if(!y)return;const{transitionEnd:v,transition:P,...g}=y;for(const p in g){let h=g[p];if(Array.isArray(h)){const x=c?h.length-1:0;h=h[x]}h!==null&&(o[p]=h)}for(const p in v)o[p]=v[p]}),o}const ie=e=>e;class Kc{constructor(){this.order=[],this.scheduled=new Set}add(t){if(!this.scheduled.has(t))return this.scheduled.add(t),this.order.push(t),!0}remove(t){const n=this.order.indexOf(t);n!==-1&&(this.order.splice(n,1),this.scheduled.delete(t))}clear(){this.order.length=0,this.scheduled.clear()}}function B0(e){let t=new Kc,n=new Kc,r=0,o=!1,i=!1;const s=new WeakSet,a={schedule:(l,u=!1,c=!1)=>{const d=c&&o,f=d?t:n;return u&&s.add(l),f.add(l)&&d&&o&&(r=t.order.length),l},cancel:l=>{n.remove(l),s.delete(l)},process:l=>{if(o){i=!0;return}if(o=!0,[t,n]=[n,t],n.clear(),r=t.order.length,r)for(let u=0;u(d[f]=B0(()=>n=!0),d),{}),s=d=>i[d].process(o),a=()=>{const d=performance.now();n=!1,o.delta=r?1e3/60:Math.max(Math.min(d-o.timestamp,U0),1),o.timestamp=d,o.isProcessing=!0,Bo.forEach(s),o.isProcessing=!1,n&&t&&(r=!1,e(a))},l=()=>{n=!0,r=!0,o.isProcessing||e(a)};return{schedule:Bo.reduce((d,f)=>{const m=i[f];return d[f]=(y,v=!1,P=!1)=>(n||l(),m.schedule(y,v,P)),d},{}),cancel:d=>Bo.forEach(f=>i[f].cancel(d)),state:o,steps:i}}const{schedule:X,cancel:Rt,state:Se,steps:Fs}=$0(typeof requestAnimationFrame<"u"?requestAnimationFrame:ie,!0),W0={useVisualState:_h({scrapeMotionValuesFromProps:Ih,createRenderState:Dh,onMount:(e,t,{renderState:n,latestValues:r})=>{X.read(()=>{try{n.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch{n.dimensions={x:0,y:0,width:0,height:0}}}),X.render(()=>{hu(n,r,{enableHardwareAcceleration:!1},mu(t.tagName),e.transformTemplate),bh(t,n)})}})},H0={useVisualState:_h({scrapeMotionValuesFromProps:gu,createRenderState:pu})};function G0(e,{forwardMotionProps:t=!1},n,r){return{...du(e)?W0:H0,preloadedFeatures:n,useRender:b0(t),createVisualElement:r,Component:e}}function wt(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}const Oh=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;function us(e,t="page"){return{point:{x:e[t+"X"],y:e[t+"Y"]}}}const K0=e=>t=>Oh(t)&&e(t,us(t));function Pt(e,t,n,r){return wt(e,t,K0(n),r)}const Q0=(e,t)=>n=>t(e(n)),Qt=(...e)=>e.reduce(Q0);function Fh(e){let t=null;return()=>{const n=()=>{t=null};return t===null?(t=e,n):!1}}const Qc=Fh("dragHorizontal"),Yc=Fh("dragVertical");function zh(e){let t=!1;if(e==="y")t=Yc();else if(e==="x")t=Qc();else{const n=Qc(),r=Yc();n&&r?t=()=>{n(),r()}:(n&&n(),r&&r())}return t}function Bh(){const e=zh(!0);return e?(e(),!1):!0}class rn{constructor(t){this.isMounted=!1,this.node=t}update(){}}function Xc(e,t){const n="pointer"+(t?"enter":"leave"),r="onHover"+(t?"Start":"End"),o=(i,s)=>{if(i.pointerType==="touch"||Bh())return;const a=e.getProps();e.animationState&&a.whileHover&&e.animationState.setActive("whileHover",t),a[r]&&X.update(()=>a[r](i,s))};return Pt(e.current,n,o,{passive:!e.getProps()[r]})}class Y0 extends rn{mount(){this.unmount=Qt(Xc(this.node,!0),Xc(this.node,!1))}unmount(){}}class X0 extends rn{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=Qt(wt(this.node.current,"focus",()=>this.onFocus()),wt(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const Uh=(e,t)=>t?e===t?!0:Uh(e,t.parentElement):!1;function zs(e,t){if(!t)return;const n=new PointerEvent("pointer"+e);t(n,us(n))}class Z0 extends rn{constructor(){super(...arguments),this.removeStartListeners=ie,this.removeEndListeners=ie,this.removeAccessibleListeners=ie,this.startPointerPress=(t,n)=>{if(this.isPressing)return;this.removeEndListeners();const r=this.node.getProps(),i=Pt(window,"pointerup",(a,l)=>{if(!this.checkPressEnd())return;const{onTap:u,onTapCancel:c,globalTapTarget:d}=this.node.getProps();X.update(()=>{!d&&!Uh(this.node.current,a.target)?c&&c(a,l):u&&u(a,l)})},{passive:!(r.onTap||r.onPointerUp)}),s=Pt(window,"pointercancel",(a,l)=>this.cancelPress(a,l),{passive:!(r.onTapCancel||r.onPointerCancel)});this.removeEndListeners=Qt(i,s),this.startPress(t,n)},this.startAccessiblePress=()=>{const t=i=>{if(i.key!=="Enter"||this.isPressing)return;const s=a=>{a.key!=="Enter"||!this.checkPressEnd()||zs("up",(l,u)=>{const{onTap:c}=this.node.getProps();c&&X.update(()=>c(l,u))})};this.removeEndListeners(),this.removeEndListeners=wt(this.node.current,"keyup",s),zs("down",(a,l)=>{this.startPress(a,l)})},n=wt(this.node.current,"keydown",t),r=()=>{this.isPressing&&zs("cancel",(i,s)=>this.cancelPress(i,s))},o=wt(this.node.current,"blur",r);this.removeAccessibleListeners=Qt(n,o)}}startPress(t,n){this.isPressing=!0;const{onTapStart:r,whileTap:o}=this.node.getProps();o&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),r&&X.update(()=>r(t,n))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!Bh()}cancelPress(t,n){if(!this.checkPressEnd())return;const{onTapCancel:r}=this.node.getProps();r&&X.update(()=>r(t,n))}mount(){const t=this.node.getProps(),n=Pt(t.globalTapTarget?window:this.node.current,"pointerdown",this.startPointerPress,{passive:!(t.onTapStart||t.onPointerStart)}),r=wt(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=Qt(n,r)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}const Ya=new WeakMap,Bs=new WeakMap,q0=e=>{const t=Ya.get(e.target);t&&t(e)},J0=e=>{e.forEach(q0)};function e1({root:e,...t}){const n=e||document;Bs.has(n)||Bs.set(n,{});const r=Bs.get(n),o=JSON.stringify(t);return r[o]||(r[o]=new IntersectionObserver(J0,{root:e,...t})),r[o]}function t1(e,t,n){const r=e1(t);return Ya.set(e,n),r.observe(e),()=>{Ya.delete(e),r.unobserve(e)}}const n1={some:0,all:1};class r1 extends rn{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:o="some",once:i}=t,s={root:n?n.current:void 0,rootMargin:r,threshold:typeof o=="number"?o:n1[o]},a=l=>{const{isIntersecting:u}=l;if(this.isInView===u||(this.isInView=u,i&&!u&&this.hasEnteredView))return;u&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",u);const{onViewportEnter:c,onViewportLeave:d}=this.node.getProps(),f=u?c:d;f&&f(l)};return t1(this.node.current,s,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(o1(t,n))&&this.startObserver()}unmount(){}}function o1({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const i1={inView:{Feature:r1},tap:{Feature:Z0},focus:{Feature:X0},hover:{Feature:Y0}};function $h(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;rt[r]=n.get()),t}function a1(e){const t={};return e.values.forEach((n,r)=>t[r]=n.getVelocity()),t}function cs(e,t,n){const r=e.getProps();return vu(r,t,n!==void 0?n:r.custom,s1(e),a1(e))}let l1=ie,yu=ie;const Yt=e=>e*1e3,Ct=e=>e/1e3,u1={current:!1},Wh=e=>Array.isArray(e)&&typeof e[0]=="number";function Hh(e){return!!(!e||typeof e=="string"&&Gh[e]||Wh(e)||Array.isArray(e)&&e.every(Hh))}const Ar=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,Gh={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Ar([0,.65,.55,1]),circOut:Ar([.55,0,1,.45]),backIn:Ar([.31,.01,.66,-.59]),backOut:Ar([.33,1.53,.69,.99])};function Kh(e){if(e)return Wh(e)?Ar(e):Array.isArray(e)?e.map(Kh):Gh[e]}function c1(e,t,n,{delay:r=0,duration:o,repeat:i=0,repeatType:s="loop",ease:a,times:l}={}){const u={[t]:n};l&&(u.offset=l);const c=Kh(a);return Array.isArray(c)&&(u.easing=c),e.animate(u,{delay:r,duration:o,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:i+1,direction:s==="reverse"?"alternate":"normal"})}function d1(e,{repeat:t,repeatType:n="loop"}){const r=t&&n!=="loop"&&t%2===1?0:e.length-1;return e[r]}const Qh=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,f1=1e-7,p1=12;function h1(e,t,n,r,o){let i,s,a=0;do s=t+(n-t)/2,i=Qh(s,r,o)-e,i>0?n=s:t=s;while(Math.abs(i)>f1&&++ah1(i,0,1,e,n);return i=>i===0||i===1?i:Qh(o(i),t,r)}const m1=wo(.42,0,1,1),g1=wo(0,0,.58,1),Yh=wo(.42,0,.58,1),v1=e=>Array.isArray(e)&&typeof e[0]!="number",Xh=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Zh=e=>t=>1-e(1-t),xu=e=>1-Math.sin(Math.acos(e)),qh=Zh(xu),y1=Xh(xu),Jh=wo(.33,1.53,.69,.99),wu=Zh(Jh),x1=Xh(wu),w1=e=>(e*=2)<1?.5*wu(e):.5*(2-Math.pow(2,-10*(e-1))),S1={linear:ie,easeIn:m1,easeInOut:Yh,easeOut:g1,circIn:xu,circInOut:y1,circOut:qh,backIn:wu,backInOut:x1,backOut:Jh,anticipate:w1},Zc=e=>{if(Array.isArray(e)){yu(e.length===4);const[t,n,r,o]=e;return wo(t,n,r,o)}else if(typeof e=="string")return S1[e];return e},Su=(e,t)=>n=>!!(yo(n)&&S0.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t)),em=(e,t,n)=>r=>{if(!yo(r))return r;const[o,i,s,a]=r.match(ls);return{[e]:parseFloat(o),[t]:parseFloat(i),[n]:parseFloat(s),alpha:a!==void 0?parseFloat(a):1}},P1=e=>qt(0,255,e),Us={...Mn,transform:e=>Math.round(P1(e))},mn={test:Su("rgb","red"),parse:em("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+Us.transform(e)+", "+Us.transform(t)+", "+Us.transform(n)+", "+Br(zr.transform(r))+")"};function C1(e){let t="",n="",r="",o="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),o=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),o=e.substring(4,5),t+=t,n+=n,r+=r,o+=o),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:o?parseInt(o,16)/255:1}}const Xa={test:Su("#"),parse:C1,transform:mn.transform},Kn={test:Su("hsl","hue"),parse:em("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+ht.transform(Br(t))+", "+ht.transform(Br(n))+", "+Br(zr.transform(r))+")"},Te={test:e=>mn.test(e)||Xa.test(e)||Kn.test(e),parse:e=>mn.test(e)?mn.parse(e):Kn.test(e)?Kn.parse(e):Xa.parse(e),transform:e=>yo(e)?e:e.hasOwnProperty("red")?mn.transform(e):Kn.transform(e)},te=(e,t,n)=>-n*e+n*t+e;function $s(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function T1({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let o=0,i=0,s=0;if(!t)o=i=s=n;else{const a=n<.5?n*(1+t):n+t-n*t,l=2*n-a;o=$s(l,a,e+1/3),i=$s(l,a,e),s=$s(l,a,e-1/3)}return{red:Math.round(o*255),green:Math.round(i*255),blue:Math.round(s*255),alpha:r}}const Ws=(e,t,n)=>{const r=e*e;return Math.sqrt(Math.max(0,n*(t*t-r)+r))},k1=[Xa,mn,Kn],E1=e=>k1.find(t=>t.test(e));function qc(e){const t=E1(e);let n=t.parse(e);return t===Kn&&(n=T1(n)),n}const tm=(e,t)=>{const n=qc(e),r=qc(t),o={...n};return i=>(o.red=Ws(n.red,r.red,i),o.green=Ws(n.green,r.green,i),o.blue=Ws(n.blue,r.blue,i),o.alpha=te(n.alpha,r.alpha,i),mn.transform(o))};function N1(e){var t,n;return isNaN(e)&&yo(e)&&(((t=e.match(ls))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(Rh))===null||n===void 0?void 0:n.length)||0)>0}const nm={regex:x0,countKey:"Vars",token:"${v}",parse:ie},rm={regex:Rh,countKey:"Colors",token:"${c}",parse:Te.parse},om={regex:ls,countKey:"Numbers",token:"${n}",parse:Mn.parse};function Hs(e,{regex:t,countKey:n,token:r,parse:o}){const i=e.tokenised.match(t);i&&(e["num"+n]=i.length,e.tokenised=e.tokenised.replace(t,r),e.values.push(...i.map(o)))}function bi(e){const t=e.toString(),n={value:t,tokenised:t,values:[],numVars:0,numColors:0,numNumbers:0};return n.value.includes("var(--")&&Hs(n,nm),Hs(n,rm),Hs(n,om),n}function im(e){return bi(e).values}function sm(e){const{values:t,numColors:n,numVars:r,tokenised:o}=bi(e),i=t.length;return s=>{let a=o;for(let l=0;ltypeof e=="number"?0:e;function M1(e){const t=im(e);return sm(e)(t.map(R1))}const Jt={test:N1,parse:im,createTransformer:sm,getAnimatableNone:M1},am=(e,t)=>n=>`${n>0?t:e}`;function lm(e,t){return typeof e=="number"?n=>te(e,t,n):Te.test(e)?tm(e,t):e.startsWith("var(")?am(e,t):cm(e,t)}const um=(e,t)=>{const n=[...e],r=n.length,o=e.map((i,s)=>lm(i,t[s]));return i=>{for(let s=0;s{const n={...e,...t},r={};for(const o in n)e[o]!==void 0&&t[o]!==void 0&&(r[o]=lm(e[o],t[o]));return o=>{for(const i in r)n[i]=r[i](o);return n}},cm=(e,t)=>{const n=Jt.createTransformer(t),r=bi(e),o=bi(t);return r.numVars===o.numVars&&r.numColors===o.numColors&&r.numNumbers>=o.numNumbers?Qt(um(r.values,o.values),n):am(e,t)},uo=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},Jc=(e,t)=>n=>te(e,t,n);function L1(e){return typeof e=="number"?Jc:typeof e=="string"?Te.test(e)?tm:cm:Array.isArray(e)?um:typeof e=="object"?A1:Jc}function D1(e,t,n){const r=[],o=n||L1(e[0]),i=e.length-1;for(let s=0;st[0];e[0]>e[i-1]&&(e=[...e].reverse(),t=[...t].reverse());const s=D1(t,r,o),a=s.length,l=u=>{let c=0;if(a>1)for(;cl(qt(e[0],e[i-1],u)):l}function j1(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const o=uo(0,t,r);e.push(te(n,1,o))}}function V1(e){const t=[0];return j1(t,e.length-1),t}function b1(e,t){return e.map(n=>n*t)}function I1(e,t){return e.map(()=>t||Yh).splice(0,e.length-1)}function Ii({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const o=v1(r)?r.map(Zc):Zc(r),i={done:!1,value:t[0]},s=b1(n&&n.length===t.length?n:V1(t),e),a=dm(s,t,{ease:Array.isArray(o)?o:I1(t,o)});return{calculatedDuration:e,next:l=>(i.value=a(l),i.done=l>=e,i)}}function fm(e,t){return t?e*(1e3/t):0}const _1=5;function pm(e,t,n){const r=Math.max(t-_1,0);return fm(n-e(r),t-r)}const Gs=.001,O1=.01,ed=10,F1=.05,z1=1;function B1({duration:e=800,bounce:t=.25,velocity:n=0,mass:r=1}){let o,i;l1(e<=Yt(ed));let s=1-t;s=qt(F1,z1,s),e=qt(O1,ed,Ct(e)),s<1?(o=u=>{const c=u*s,d=c*e,f=c-n,m=Za(u,s),y=Math.exp(-d);return Gs-f/m*y},i=u=>{const d=u*s*e,f=d*n+n,m=Math.pow(s,2)*Math.pow(u,2)*e,y=Math.exp(-d),v=Za(Math.pow(u,2),s);return(-o(u)+Gs>0?-1:1)*((f-m)*y)/v}):(o=u=>{const c=Math.exp(-u*e),d=(u-n)*e+1;return-Gs+c*d},i=u=>{const c=Math.exp(-u*e),d=(n-u)*(e*e);return c*d});const a=5/e,l=$1(o,i,a);if(e=Yt(e),isNaN(l))return{stiffness:100,damping:10,duration:e};{const u=Math.pow(l,2)*r;return{stiffness:u,damping:s*2*Math.sqrt(r*u),duration:e}}}const U1=12;function $1(e,t,n){let r=n;for(let o=1;oe[n]!==void 0)}function G1(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!td(e,H1)&&td(e,W1)){const n=B1(e);t={...t,...n,mass:1},t.isResolvedFromDuration=!0}return t}function hm({keyframes:e,restDelta:t,restSpeed:n,...r}){const o=e[0],i=e[e.length-1],s={done:!1,value:o},{stiffness:a,damping:l,mass:u,duration:c,velocity:d,isResolvedFromDuration:f}=G1({...r,velocity:-Ct(r.velocity||0)}),m=d||0,y=l/(2*Math.sqrt(a*u)),v=i-o,P=Ct(Math.sqrt(a/u)),g=Math.abs(v)<5;n||(n=g?.01:2),t||(t=g?.005:.5);let p;if(y<1){const h=Za(P,y);p=x=>{const C=Math.exp(-y*P*x);return i-C*((m+y*P*v)/h*Math.sin(h*x)+v*Math.cos(h*x))}}else if(y===1)p=h=>i-Math.exp(-P*h)*(v+(m+P*v)*h);else{const h=P*Math.sqrt(y*y-1);p=x=>{const C=Math.exp(-y*P*x),k=Math.min(h*x,300);return i-C*((m+y*P*v)*Math.sinh(k)+h*v*Math.cosh(k))/h}}return{calculatedDuration:f&&c||null,next:h=>{const x=p(h);if(f)s.done=h>=c;else{let C=m;h!==0&&(y<1?C=pm(p,h,x):C=0);const k=Math.abs(C)<=n,T=Math.abs(i-x)<=t;s.done=k&&T}return s.value=s.done?i:x,s}}}function nd({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:o=10,bounceStiffness:i=500,modifyTarget:s,min:a,max:l,restDelta:u=.5,restSpeed:c}){const d=e[0],f={done:!1,value:d},m=E=>a!==void 0&&El,y=E=>a===void 0?l:l===void 0||Math.abs(a-E)-v*Math.exp(-E/r),h=E=>g+p(E),x=E=>{const D=p(E),j=h(E);f.done=Math.abs(D)<=u,f.value=f.done?g:j};let C,k;const T=E=>{m(f.value)&&(C=E,k=hm({keyframes:[f.value,y(f.value)],velocity:pm(h,E,f.value),damping:o,stiffness:i,restDelta:u,restSpeed:c}))};return T(0),{calculatedDuration:null,next:E=>{let D=!1;return!k&&C===void 0&&(D=!0,x(E),T(E)),C!==void 0&&E>C?k.next(E-C):(!D&&x(E),f)}}}const K1=e=>{const t=({timestamp:n})=>e(n);return{start:()=>X.update(t,!0),stop:()=>Rt(t),now:()=>Se.isProcessing?Se.timestamp:performance.now()}},rd=2e4;function od(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t=rd?1/0:t}const Q1={decay:nd,inertia:nd,tween:Ii,keyframes:Ii,spring:hm};function _i({autoplay:e=!0,delay:t=0,driver:n=K1,keyframes:r,type:o="keyframes",repeat:i=0,repeatDelay:s=0,repeatType:a="loop",onPlay:l,onStop:u,onComplete:c,onUpdate:d,...f}){let m=1,y=!1,v,P;const g=()=>{P=new Promise(V=>{v=V})};g();let p;const h=Q1[o]||Ii;let x;h!==Ii&&typeof r[0]!="number"&&(x=dm([0,100],r,{clamp:!1}),r=[0,100]);const C=h({...f,keyframes:r});let k;a==="mirror"&&(k=h({...f,keyframes:[...r].reverse(),velocity:-(f.velocity||0)}));let T="idle",E=null,D=null,j=null;C.calculatedDuration===null&&i&&(C.calculatedDuration=od(C));const{calculatedDuration:$}=C;let b=1/0,J=1/0;$!==null&&(b=$+s,J=b*(i+1)-s);let A=0;const Z=V=>{if(D===null)return;m>0&&(D=Math.min(D,V)),m<0&&(D=Math.min(V-J/m,D)),E!==null?A=E:A=Math.round(V-D)*m;const B=A-t*(m>=0?1:-1),H=m>=0?B<0:B>J;A=Math.max(B,0),T==="finished"&&E===null&&(A=J);let Ie=A,Dn=C;if(i){const fs=Math.min(A,J)/b;let Po=Math.floor(fs),sn=fs%1;!sn&&fs>=1&&(sn=1),sn===1&&Po--,Po=Math.min(Po,i+1),!!(Po%2)&&(a==="reverse"?(sn=1-sn,s&&(sn-=s/b)):a==="mirror"&&(Dn=k)),Ie=qt(0,1,sn)*b}const _e=H?{done:!1,value:r[0]}:Dn.next(Ie);x&&(_e.value=x(_e.value));let{done:on}=_e;!H&&$!==null&&(on=m>=0?A>=J:A<=0);const Rg=E===null&&(T==="finished"||T==="running"&&on);return d&&d(_e.value),Rg&&R(),_e},z=()=>{p&&p.stop(),p=void 0},se=()=>{T="idle",z(),v(),g(),D=j=null},R=()=>{T="finished",c&&c(),z(),v()},L=()=>{if(y)return;p||(p=n(Z));const V=p.now();l&&l(),E!==null?D=V-E:(!D||T==="finished")&&(D=V),T==="finished"&&g(),j=D,E=null,T="running",p.start()};e&&L();const _={then(V,B){return P.then(V,B)},get time(){return Ct(A)},set time(V){V=Yt(V),A=V,E!==null||!p||m===0?E=V:D=p.now()-V/m},get duration(){const V=C.calculatedDuration===null?od(C):C.calculatedDuration;return Ct(V)},get speed(){return m},set speed(V){V===m||!p||(m=V,_.time=Ct(A))},get state(){return T},play:L,pause:()=>{T="paused",E=A},stop:()=>{y=!0,T!=="idle"&&(T="idle",u&&u(),se())},cancel:()=>{j!==null&&Z(j),se()},complete:()=>{T="finished"},sample:V=>(D=0,Z(V))};return _}function Y1(e){let t;return()=>(t===void 0&&(t=e()),t)}const X1=Y1(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),Z1=new Set(["opacity","clipPath","filter","transform","backgroundColor"]),Uo=10,q1=2e4,J1=(e,t)=>t.type==="spring"||e==="backgroundColor"||!Hh(t.ease);function ex(e,t,{onUpdate:n,onComplete:r,...o}){if(!(X1()&&Z1.has(t)&&!o.repeatDelay&&o.repeatType!=="mirror"&&o.damping!==0&&o.type!=="inertia"))return!1;let s=!1,a,l,u=!1;const c=()=>{l=new Promise(h=>{a=h})};c();let{keyframes:d,duration:f=300,ease:m,times:y}=o;if(J1(t,o)){const h=_i({...o,repeat:0,delay:0});let x={done:!1,value:d[0]};const C=[];let k=0;for(;!x.done&&k{u=!1,v.cancel()},g=()=>{u=!0,X.update(P),a(),c()};return v.onfinish=()=>{u||(e.set(d1(d,o)),r&&r(),g())},{then(h,x){return l.then(h,x)},attachTimeline(h){return v.timeline=h,v.onfinish=null,ie},get time(){return Ct(v.currentTime||0)},set time(h){v.currentTime=Yt(h)},get speed(){return v.playbackRate},set speed(h){v.playbackRate=h},get duration(){return Ct(f)},play:()=>{s||(v.play(),Rt(P))},pause:()=>v.pause(),stop:()=>{if(s=!0,v.playState==="idle")return;const{currentTime:h}=v;if(h){const x=_i({...o,autoplay:!1});e.setWithVelocity(x.sample(h-Uo).value,x.sample(h).value,Uo)}g()},complete:()=>{u||v.finish()},cancel:g}}function tx({keyframes:e,delay:t,onUpdate:n,onComplete:r}){const o=()=>(n&&n(e[e.length-1]),r&&r(),{time:0,speed:1,duration:0,play:ie,pause:ie,stop:ie,then:i=>(i(),Promise.resolve()),cancel:ie,complete:ie});return t?_i({keyframes:[0,1],duration:0,delay:t,onComplete:o}):o()}const nx={type:"spring",stiffness:500,damping:25,restSpeed:10},rx=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),ox={type:"keyframes",duration:.8},ix={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},sx=(e,{keyframes:t})=>t.length>2?ox:Rn.has(e)?e.startsWith("scale")?rx(t[1]):nx:ix,qa=(e,t)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(Jt.test(t)||t==="0")&&!t.startsWith("url(")),ax=new Set(["brightness","contrast","saturate","opacity"]);function lx(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(ls)||[];if(!r)return e;const o=n.replace(r,"");let i=ax.has(t)?1:0;return r!==n&&(i*=100),t+"("+i+o+")"}const ux=/([a-z-]*)\(.*?\)/g,Ja={...Jt,getAnimatableNone:e=>{const t=e.match(ux);return t?t.map(lx).join(" "):e}},cx={...Mh,color:Te,backgroundColor:Te,outlineColor:Te,fill:Te,stroke:Te,borderColor:Te,borderTopColor:Te,borderRightColor:Te,borderBottomColor:Te,borderLeftColor:Te,filter:Ja,WebkitFilter:Ja},Pu=e=>cx[e];function mm(e,t){let n=Pu(e);return n!==Ja&&(n=Jt),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const gm=e=>/^0[^.\s]+$/.test(e);function dx(e){if(typeof e=="number")return e===0;if(e!==null)return e==="none"||e==="0"||gm(e)}function fx(e,t,n,r){const o=qa(t,n);let i;Array.isArray(n)?i=[...n]:i=[null,n];const s=r.from!==void 0?r.from:e.get();let a;const l=[];for(let u=0;uo=>{const i=Cu(r,e)||{},s=i.delay||r.delay||0;let{elapsed:a=0}=r;a=a-Yt(s);const l=fx(t,e,n,i),u=l[0],c=l[l.length-1],d=qa(e,u),f=qa(e,c);let m={keyframes:l,velocity:t.getVelocity(),ease:"easeOut",...i,delay:-a,onUpdate:y=>{t.set(y),i.onUpdate&&i.onUpdate(y)},onComplete:()=>{o(),i.onComplete&&i.onComplete()}};if(px(i)||(m={...m,...sx(e,m)}),m.duration&&(m.duration=Yt(m.duration)),m.repeatDelay&&(m.repeatDelay=Yt(m.repeatDelay)),!d||!f||u1.current||i.type===!1||hx.skipAnimations)return tx(m);if(!r.isHandoff&&t.owner&&t.owner.current instanceof HTMLElement&&!t.owner.getProps().onUpdate){const y=ex(t,e,m);if(y)return y}return _i(m)};function Oi(e){return!!(be(e)&&e.add)}const vm=e=>/^\-?\d*\.?\d+$/.test(e);function ku(e,t){e.indexOf(t)===-1&&e.push(t)}function Eu(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class Nu{constructor(){this.subscriptions=[]}add(t){return ku(this.subscriptions,t),()=>Eu(this.subscriptions,t)}notify(t,n,r){const o=this.subscriptions.length;if(o)if(o===1)this.subscriptions[0](t,n,r);else for(let i=0;i!isNaN(parseFloat(e));class gx{constructor(t,n={}){this.version="10.18.0",this.timeDelta=0,this.lastUpdated=0,this.canTrackVelocity=!1,this.events={},this.updateAndNotify=(r,o=!0)=>{this.prev=this.current,this.current=r;const{delta:i,timestamp:s}=Se;this.lastUpdated!==s&&(this.timeDelta=i,this.lastUpdated=s,X.postRender(this.scheduleVelocityCheck)),this.prev!==this.current&&this.events.change&&this.events.change.notify(this.current),this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()),o&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.scheduleVelocityCheck=()=>X.postRender(this.velocityCheck),this.velocityCheck=({timestamp:r})=>{r!==this.lastUpdated&&(this.prev=this.current,this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=t,this.canTrackVelocity=mx(this.current),this.owner=n.owner}onChange(t){return this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new Nu);const r=this.events[t].add(n);return t==="change"?()=>{r(),X.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t,n=!0){!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,n,r){this.set(n),this.prev=t,this.timeDelta=r}jump(t){this.updateAndNotify(t),this.prev=t,this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){return this.canTrackVelocity?fm(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function ur(e,t){return new gx(e,t)}const ym=e=>t=>t.test(e),vx={test:e=>e==="auto",parse:e=>e},xm=[Mn,I,ht,Dt,C0,P0,vx],Pr=e=>xm.find(ym(e)),yx=[...xm,Te,Jt],xx=e=>yx.find(ym(e));function wx(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,ur(n))}function Sx(e,t){const n=cs(e,t);let{transitionEnd:r={},transition:o={},...i}=n?e.makeTargetAnimatable(n,!1):{};i={...i,...r};for(const s in i){const a=O0(i[s]);wx(e,s,a)}}function Px(e,t,n){var r,o;const i=Object.keys(t).filter(a=>!e.hasValue(a)),s=i.length;if(s)for(let a=0;al.remove(d))),u.push(P)}return s&&Promise.all(u).then(()=>{s&&Sx(e,s)}),u}function el(e,t,n={}){const r=cs(e,t,n.custom);let{transition:o=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(o=n.transitionOverride);const i=r?()=>Promise.all(wm(e,r,n)):()=>Promise.resolve(),s=e.variantChildren&&e.variantChildren.size?(l=0)=>{const{delayChildren:u=0,staggerChildren:c,staggerDirection:d}=o;return Nx(e,t,u+l,c,d,n)}:()=>Promise.resolve(),{when:a}=o;if(a){const[l,u]=a==="beforeChildren"?[i,s]:[s,i];return l().then(()=>u())}else return Promise.all([i(),s(n.delay)])}function Nx(e,t,n=0,r=0,o=1,i){const s=[],a=(e.variantChildren.size-1)*r,l=o===1?(u=0)=>u*r:(u=0)=>a-u*r;return Array.from(e.variantChildren).sort(Rx).forEach((u,c)=>{u.notify("AnimationStart",t),s.push(el(u,t,{...i,delay:n+l(c)}).then(()=>u.notify("AnimationComplete",t)))}),Promise.all(s)}function Rx(e,t){return e.sortNodePosition(t)}function Mx(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const o=t.map(i=>el(e,i,n));r=Promise.all(o)}else if(typeof t=="string")r=el(e,t,n);else{const o=typeof t=="function"?cs(e,t,n.custom):t;r=Promise.all(wm(e,o,n))}return r.then(()=>e.notify("AnimationComplete",t))}const Ax=[...uu].reverse(),Lx=uu.length;function Dx(e){return t=>Promise.all(t.map(({animation:n,options:r})=>Mx(e,n,r)))}function jx(e){let t=Dx(e);const n=bx();let r=!0;const o=(l,u)=>{const c=cs(e,u);if(c){const{transition:d,transitionEnd:f,...m}=c;l={...l,...m,...f}}return l};function i(l){t=l(e)}function s(l,u){const c=e.getProps(),d=e.getVariantContext(!0)||{},f=[],m=new Set;let y={},v=1/0;for(let g=0;gv&&C,j=!1;const $=Array.isArray(x)?x:[x];let b=$.reduce(o,{});k===!1&&(b={});const{prevResolvedValues:J={}}=h,A={...J,...b},Z=z=>{D=!0,m.has(z)&&(j=!0,m.delete(z)),h.needsAnimating[z]=!0};for(const z in A){const se=b[z],R=J[z];if(y.hasOwnProperty(z))continue;let L=!1;Vi(se)&&Vi(R)?L=!$h(se,R):L=se!==R,L?se!==void 0?Z(z):m.add(z):se!==void 0&&m.has(z)?Z(z):h.protectedKeys[z]=!0}h.prevProp=x,h.prevResolvedValues=b,h.isActive&&(y={...y,...b}),r&&e.blockInitialAnimation&&(D=!1),D&&(!T||j)&&f.push(...$.map(z=>({animation:z,options:{type:p,...l}})))}if(m.size){const g={};m.forEach(p=>{const h=e.getBaseTarget(p);h!==void 0&&(g[p]=h)}),f.push({animation:g})}let P=!!f.length;return r&&(c.initial===!1||c.initial===c.animate)&&!e.manuallyAnimateOnMount&&(P=!1),r=!1,P?t(f):Promise.resolve()}function a(l,u,c){var d;if(n[l].isActive===u)return Promise.resolve();(d=e.variantChildren)===null||d===void 0||d.forEach(m=>{var y;return(y=m.animationState)===null||y===void 0?void 0:y.setActive(l,u)}),n[l].isActive=u;const f=s(c,l);for(const m in n)n[m].protectedKeys={};return f}return{animateChanges:s,setActive:a,setAnimateFunction:i,getState:()=>n}}function Vx(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!$h(t,e):!1}function an(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function bx(){return{animate:an(!0),whileInView:an(),whileHover:an(),whileTap:an(),whileDrag:an(),whileFocus:an(),exit:an()}}class Ix extends rn{constructor(t){super(t),t.animationState||(t.animationState=jx(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();this.unmount(),ss(t)&&(this.unmount=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){}}let _x=0;class Ox extends rn{constructor(){super(...arguments),this.id=_x++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n,custom:r}=this.node.presenceContext,{isPresent:o}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===o)return;const i=this.node.animationState.setActive("exit",!t,{custom:r??this.node.getProps().custom});n&&!t&&i.then(()=>n(this.id))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}const Fx={animation:{Feature:Ix},exit:{Feature:Ox}},id=(e,t)=>Math.abs(e-t);function zx(e,t){const n=id(e.x,t.x),r=id(e.y,t.y);return Math.sqrt(n**2+r**2)}class Sm{constructor(t,n,{transformPagePoint:r,contextWindow:o,dragSnapToOrigin:i=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const d=Qs(this.lastMoveEventInfo,this.history),f=this.startEvent!==null,m=zx(d.offset,{x:0,y:0})>=3;if(!f&&!m)return;const{point:y}=d,{timestamp:v}=Se;this.history.push({...y,timestamp:v});const{onStart:P,onMove:g}=this.handlers;f||(P&&P(this.lastMoveEvent,d),this.startEvent=this.lastMoveEvent),g&&g(this.lastMoveEvent,d)},this.handlePointerMove=(d,f)=>{this.lastMoveEvent=d,this.lastMoveEventInfo=Ks(f,this.transformPagePoint),X.update(this.updatePoint,!0)},this.handlePointerUp=(d,f)=>{this.end();const{onEnd:m,onSessionEnd:y,resumeAnimation:v}=this.handlers;if(this.dragSnapToOrigin&&v&&v(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const P=Qs(d.type==="pointercancel"?this.lastMoveEventInfo:Ks(f,this.transformPagePoint),this.history);this.startEvent&&m&&m(d,P),y&&y(d,P)},!Oh(t))return;this.dragSnapToOrigin=i,this.handlers=n,this.transformPagePoint=r,this.contextWindow=o||window;const s=us(t),a=Ks(s,this.transformPagePoint),{point:l}=a,{timestamp:u}=Se;this.history=[{...l,timestamp:u}];const{onSessionStart:c}=n;c&&c(t,Qs(a,this.history)),this.removeListeners=Qt(Pt(this.contextWindow,"pointermove",this.handlePointerMove),Pt(this.contextWindow,"pointerup",this.handlePointerUp),Pt(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),Rt(this.updatePoint)}}function Ks(e,t){return t?{point:t(e.point)}:e}function sd(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Qs({point:e},t){return{point:e,delta:sd(e,Pm(t)),offset:sd(e,Bx(t)),velocity:Ux(t,.1)}}function Bx(e){return e[0]}function Pm(e){return e[e.length-1]}function Ux(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const o=Pm(e);for(;n>=0&&(r=e[n],!(o.timestamp-r.timestamp>Yt(t)));)n--;if(!r)return{x:0,y:0};const i=Ct(o.timestamp-r.timestamp);if(i===0)return{x:0,y:0};const s={x:(o.x-r.x)/i,y:(o.y-r.y)/i};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}function $e(e){return e.max-e.min}function tl(e,t=0,n=.01){return Math.abs(e-t)<=n}function ad(e,t,n,r=.5){e.origin=r,e.originPoint=te(t.min,t.max,e.origin),e.scale=$e(n)/$e(t),(tl(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=te(n.min,n.max,e.origin)-e.originPoint,(tl(e.translate)||isNaN(e.translate))&&(e.translate=0)}function Ur(e,t,n,r){ad(e.x,t.x,n.x,r?r.originX:void 0),ad(e.y,t.y,n.y,r?r.originY:void 0)}function ld(e,t,n){e.min=n.min+t.min,e.max=e.min+$e(t)}function $x(e,t,n){ld(e.x,t.x,n.x),ld(e.y,t.y,n.y)}function ud(e,t,n){e.min=t.min-n.min,e.max=e.min+$e(t)}function $r(e,t,n){ud(e.x,t.x,n.x),ud(e.y,t.y,n.y)}function Wx(e,{min:t,max:n},r){return t!==void 0&&en&&(e=r?te(n,e,r.max):Math.min(e,n)),e}function cd(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function Hx(e,{top:t,left:n,bottom:r,right:o}){return{x:cd(e.x,n,o),y:cd(e.y,t,r)}}function dd(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.minr?n=uo(t.min,t.max-r,e.min):r>o&&(n=uo(e.min,e.max-o,t.min)),qt(0,1,n)}function Qx(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const nl=.35;function Yx(e=nl){return e===!1?e=0:e===!0&&(e=nl),{x:fd(e,"left","right"),y:fd(e,"top","bottom")}}function fd(e,t,n){return{min:pd(e,t),max:pd(e,n)}}function pd(e,t){return typeof e=="number"?e:e[t]||0}const hd=()=>({translate:0,scale:1,origin:0,originPoint:0}),Qn=()=>({x:hd(),y:hd()}),md=()=>({min:0,max:0}),ue=()=>({x:md(),y:md()});function Qe(e){return[e("x"),e("y")]}function Cm({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function Xx({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function Zx(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function Ys(e){return e===void 0||e===1}function rl({scale:e,scaleX:t,scaleY:n}){return!Ys(e)||!Ys(t)||!Ys(n)}function cn(e){return rl(e)||Tm(e)||e.z||e.rotate||e.rotateX||e.rotateY}function Tm(e){return gd(e.x)||gd(e.y)}function gd(e){return e&&e!=="0%"}function Fi(e,t,n){const r=e-n,o=t*r;return n+o}function vd(e,t,n,r,o){return o!==void 0&&(e=Fi(e,o,r)),Fi(e,n,r)+t}function ol(e,t=0,n=1,r,o){e.min=vd(e.min,t,n,r,o),e.max=vd(e.max,t,n,r,o)}function km(e,{x:t,y:n}){ol(e.x,t.translate,t.scale,t.originPoint),ol(e.y,n.translate,n.scale,n.originPoint)}function qx(e,t,n,r=!1){const o=n.length;if(!o)return;t.x=t.y=1;let i,s;for(let a=0;a1.0000000000001||e<.999999999999?e:1}function bt(e,t){e.min=e.min+t,e.max=e.max+t}function xd(e,t,[n,r,o]){const i=t[o]!==void 0?t[o]:.5,s=te(e.min,e.max,i);ol(e,t[n],t[r],s,t.scale)}const Jx=["x","scaleX","originX"],ew=["y","scaleY","originY"];function Yn(e,t){xd(e.x,t,Jx),xd(e.y,t,ew)}function Em(e,t){return Cm(Zx(e.getBoundingClientRect(),t))}function tw(e,t,n){const r=Em(e,n),{scroll:o}=t;return o&&(bt(r.x,o.offset.x),bt(r.y,o.offset.y)),r}const Nm=({current:e})=>e?e.ownerDocument.defaultView:null,nw=new WeakMap;class rw{constructor(t){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=ue(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const o=c=>{const{dragSnapToOrigin:d}=this.getProps();d?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(us(c,"page").point)},i=(c,d)=>{const{drag:f,dragPropagation:m,onDragStart:y}=this.getProps();if(f&&!m&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=zh(f),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Qe(P=>{let g=this.getAxisMotionValue(P).get()||0;if(ht.test(g)){const{projection:p}=this.visualElement;if(p&&p.layout){const h=p.layout.layoutBox[P];h&&(g=$e(h)*(parseFloat(g)/100))}}this.originPoint[P]=g}),y&&X.update(()=>y(c,d),!1,!0);const{animationState:v}=this.visualElement;v&&v.setActive("whileDrag",!0)},s=(c,d)=>{const{dragPropagation:f,dragDirectionLock:m,onDirectionLock:y,onDrag:v}=this.getProps();if(!f&&!this.openGlobalLock)return;const{offset:P}=d;if(m&&this.currentDirection===null){this.currentDirection=ow(P),this.currentDirection!==null&&y&&y(this.currentDirection);return}this.updateAxis("x",d.point,P),this.updateAxis("y",d.point,P),this.visualElement.render(),v&&v(c,d)},a=(c,d)=>this.stop(c,d),l=()=>Qe(c=>{var d;return this.getAnimationState(c)==="paused"&&((d=this.getAxisMotionValue(c).animation)===null||d===void 0?void 0:d.play())}),{dragSnapToOrigin:u}=this.getProps();this.panSession=new Sm(t,{onSessionStart:o,onStart:i,onMove:s,onSessionEnd:a,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,contextWindow:Nm(this.visualElement)})}stop(t,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:o}=n;this.startAnimation(o);const{onDragEnd:i}=this.getProps();i&&X.update(()=>i(t,n))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:o}=this.getProps();if(!r||!$o(t,o,this.currentDirection))return;const i=this.getAxisMotionValue(t);let s=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(s=Wx(s,this.constraints[t],this.elastic[t])),i.set(s)}resolveConstraints(){var t;const{dragConstraints:n,dragElastic:r}=this.getProps(),o=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(t=this.visualElement.projection)===null||t===void 0?void 0:t.layout,i=this.constraints;n&&Gn(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&o?this.constraints=Hx(o.layoutBox,n):this.constraints=!1,this.elastic=Yx(r),i!==this.constraints&&o&&this.constraints&&!this.hasMutatedConstraints&&Qe(s=>{this.getAxisMotionValue(s)&&(this.constraints[s]=Qx(o.layoutBox[s],this.constraints[s]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!Gn(t))return!1;const r=t.current,{projection:o}=this.visualElement;if(!o||!o.layout)return!1;const i=tw(r,o.root,this.visualElement.getTransformPagePoint());let s=Gx(o.layout.layoutBox,i);if(n){const a=n(Xx(s));this.hasMutatedConstraints=!!a,a&&(s=Cm(a))}return s}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:o,dragTransition:i,dragSnapToOrigin:s,onDragTransitionEnd:a}=this.getProps(),l=this.constraints||{},u=Qe(c=>{if(!$o(c,n,this.currentDirection))return;let d=l&&l[c]||{};s&&(d={min:0,max:0});const f=o?200:1e6,m=o?40:1e7,y={type:"inertia",velocity:r?t[c]:0,bounceStiffness:f,bounceDamping:m,timeConstant:750,restDelta:1,restSpeed:10,...i,...d};return this.startAxisValueAnimation(c,y)});return Promise.all(u).then(a)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return r.start(Tu(t,r,0,n))}stopAnimation(){Qe(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){Qe(t=>{var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.pause()})}getAnimationState(t){var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.state}getAxisMotionValue(t){const n="_drag"+t.toUpperCase(),r=this.visualElement.getProps(),o=r[n];return o||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){Qe(n=>{const{drag:r}=this.getProps();if(!$o(n,r,this.currentDirection))return;const{projection:o}=this.visualElement,i=this.getAxisMotionValue(n);if(o&&o.layout){const{min:s,max:a}=o.layout.layoutBox[n];i.set(t[n]-te(s,a,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!Gn(n)||!r||!this.constraints)return;this.stopAnimation();const o={x:0,y:0};Qe(s=>{const a=this.getAxisMotionValue(s);if(a){const l=a.get();o[s]=Kx({min:l,max:l},this.constraints[s])}});const{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),Qe(s=>{if(!$o(s,t,null))return;const a=this.getAxisMotionValue(s),{min:l,max:u}=this.constraints[s];a.set(te(l,u,o[s]))})}addListeners(){if(!this.visualElement.current)return;nw.set(this.visualElement,this);const t=this.visualElement.current,n=Pt(t,"pointerdown",l=>{const{drag:u,dragListener:c=!0}=this.getProps();u&&c&&this.start(l)}),r=()=>{const{dragConstraints:l}=this.getProps();Gn(l)&&(this.constraints=this.resolveRefConstraints())},{projection:o}=this.visualElement,i=o.addEventListener("measure",r);o&&!o.layout&&(o.root&&o.root.updateScroll(),o.updateLayout()),r();const s=wt(window,"resize",()=>this.scalePositionWithinConstraints()),a=o.addEventListener("didUpdate",({delta:l,hasLayoutChanged:u})=>{this.isDragging&&u&&(Qe(c=>{const d=this.getAxisMotionValue(c);d&&(this.originPoint[c]+=l[c].translate,d.set(d.get()+l[c].translate))}),this.visualElement.render())});return()=>{s(),n(),i(),a&&a()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:o=!1,dragConstraints:i=!1,dragElastic:s=nl,dragMomentum:a=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:o,dragConstraints:i,dragElastic:s,dragMomentum:a}}}function $o(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function ow(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class iw extends rn{constructor(t){super(t),this.removeGroupControls=ie,this.removeListeners=ie,this.controls=new rw(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||ie}unmount(){this.removeGroupControls(),this.removeListeners()}}const wd=e=>(t,n)=>{e&&X.update(()=>e(t,n))};class sw extends rn{constructor(){super(...arguments),this.removePointerDownListener=ie}onPointerDown(t){this.session=new Sm(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Nm(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:o}=this.node.getProps();return{onSessionStart:wd(t),onStart:wd(n),onMove:r,onEnd:(i,s)=>{delete this.session,o&&X.update(()=>o(i,s))}}}mount(){this.removePointerDownListener=Pt(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}function aw(){const e=S.useContext(au);if(e===null)return[!0,null];const{isPresent:t,onExitComplete:n,register:r}=e,o=S.useId();return S.useEffect(()=>r(o),[]),!t&&n?[!1,()=>n&&n(o)]:[!0]}const si={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function Sd(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Cr={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(I.test(e))e=parseFloat(e);else return e;const n=Sd(e,t.target.x),r=Sd(e,t.target.y);return`${n}% ${r}%`}},lw={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,o=Jt.parse(e);if(o.length>5)return r;const i=Jt.createTransformer(e),s=typeof o[0]!="number"?1:0,a=n.x.scale*t.x,l=n.y.scale*t.y;o[0+s]/=a,o[1+s]/=l;const u=te(a,l,.5);return typeof o[2+s]=="number"&&(o[2+s]/=u),typeof o[3+s]=="number"&&(o[3+s]/=u),i(o)}};class uw extends he.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:o}=this.props,{projection:i}=t;m0(cw),i&&(n.group&&n.group.add(i),r&&r.register&&o&&r.register(i),i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,onExitComplete:()=>this.safeToRemove()})),si.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:o,isPresent:i}=this.props,s=r.projection;return s&&(s.isPresent=i,o||t.layoutDependency!==n||n===void 0?s.willUpdate():this.safeToRemove(),t.isPresent!==i&&(i?s.promote():s.relegate()||X.postRender(()=>{const a=s.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),queueMicrotask(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:o}=t;o&&(o.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(o),r&&r.deregister&&r.deregister(o))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function Rm(e){const[t,n]=aw(),r=S.useContext(Ch);return he.createElement(uw,{...e,layoutGroup:r,switchLayoutGroup:S.useContext(Th),isPresent:t,safeToRemove:n})}const cw={borderRadius:{...Cr,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Cr,borderTopRightRadius:Cr,borderBottomLeftRadius:Cr,borderBottomRightRadius:Cr,boxShadow:lw},Mm=["TopLeft","TopRight","BottomLeft","BottomRight"],dw=Mm.length,Pd=e=>typeof e=="string"?parseFloat(e):e,Cd=e=>typeof e=="number"||I.test(e);function fw(e,t,n,r,o,i){o?(e.opacity=te(0,n.opacity!==void 0?n.opacity:1,pw(r)),e.opacityExit=te(t.opacity!==void 0?t.opacity:1,0,hw(r))):i&&(e.opacity=te(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let s=0;srt?1:n(uo(e,t,r))}function kd(e,t){e.min=t.min,e.max=t.max}function Ke(e,t){kd(e.x,t.x),kd(e.y,t.y)}function Ed(e,t,n,r,o){return e-=t,e=Fi(e,1/n,r),o!==void 0&&(e=Fi(e,1/o,r)),e}function mw(e,t=0,n=1,r=.5,o,i=e,s=e){if(ht.test(t)&&(t=parseFloat(t),t=te(s.min,s.max,t/100)-s.min),typeof t!="number")return;let a=te(i.min,i.max,r);e===i&&(a-=t),e.min=Ed(e.min,t,n,a,o),e.max=Ed(e.max,t,n,a,o)}function Nd(e,t,[n,r,o],i,s){mw(e,t[n],t[r],t[o],t.scale,i,s)}const gw=["x","scaleX","originX"],vw=["y","scaleY","originY"];function Rd(e,t,n,r){Nd(e.x,t,gw,n?n.x:void 0,r?r.x:void 0),Nd(e.y,t,vw,n?n.y:void 0,r?r.y:void 0)}function Md(e){return e.translate===0&&e.scale===1}function Lm(e){return Md(e.x)&&Md(e.y)}function yw(e,t){return e.x.min===t.x.min&&e.x.max===t.x.max&&e.y.min===t.y.min&&e.y.max===t.y.max}function Dm(e,t){return Math.round(e.x.min)===Math.round(t.x.min)&&Math.round(e.x.max)===Math.round(t.x.max)&&Math.round(e.y.min)===Math.round(t.y.min)&&Math.round(e.y.max)===Math.round(t.y.max)}function Ad(e){return $e(e.x)/$e(e.y)}class xw{constructor(){this.members=[]}add(t){ku(this.members,t),t.scheduleRender()}remove(t){if(Eu(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(o=>t===o);if(n===0)return!1;let r;for(let o=n;o>=0;o--){const i=this.members[o];if(i.isPresent!==!1){r=i;break}}return r?(this.promote(r),!0):!1}promote(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,n&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:o}=t.options;o===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:r}=t;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function Ld(e,t,n){let r="";const o=e.x.translate/t.x,i=e.y.translate/t.y;if((o||i)&&(r=`translate3d(${o}px, ${i}px, 0) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{rotate:l,rotateX:u,rotateY:c}=n;l&&(r+=`rotate(${l}deg) `),u&&(r+=`rotateX(${u}deg) `),c&&(r+=`rotateY(${c}deg) `)}const s=e.x.scale*t.x,a=e.y.scale*t.y;return(s!==1||a!==1)&&(r+=`scale(${s}, ${a})`),r||"none"}const ww=(e,t)=>e.depth-t.depth;class Sw{constructor(){this.children=[],this.isDirty=!1}add(t){ku(this.children,t),this.isDirty=!0}remove(t){Eu(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(ww),this.isDirty=!1,this.children.forEach(t)}}function Pw(e,t){const n=performance.now(),r=({timestamp:o})=>{const i=o-n;i>=t&&(Rt(r),e(i-t))};return X.read(r,!0),()=>Rt(r)}function Cw(e){window.MotionDebug&&window.MotionDebug.record(e)}function Tw(e){return e instanceof SVGElement&&e.tagName!=="svg"}function kw(e,t,n){const r=be(e)?e:ur(e);return r.start(Tu("",r,t,n)),r.animation}const Dd=["","X","Y","Z"],Ew={visibility:"hidden"},jd=1e3;let Nw=0;const dn={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function jm({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:o}){return class{constructor(s={},a=t==null?void 0:t()){this.id=Nw++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,dn.totalNodes=dn.resolvedTargetDeltas=dn.recalculatedProjection=0,this.nodes.forEach(Aw),this.nodes.forEach(bw),this.nodes.forEach(Iw),this.nodes.forEach(Lw),Cw(dn)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=s,this.root=a?a.root||a:this,this.path=a?[...a.path,a]:[],this.parent=a,this.depth=a?a.depth+1:0;for(let l=0;lthis.root.updateBlockedByResize=!1;e(s,()=>{this.root.updateBlockedByResize=!0,d&&d(),d=Pw(f,250),si.hasAnimatedSinceResize&&(si.hasAnimatedSinceResize=!1,this.nodes.forEach(bd))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&c&&(l||u)&&this.addEventListener("didUpdate",({delta:d,hasLayoutChanged:f,hasRelativeTargetChanged:m,layout:y})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const v=this.options.transition||c.getDefaultTransition()||Bw,{onLayoutAnimationStart:P,onLayoutAnimationComplete:g}=c.getProps(),p=!this.targetLayout||!Dm(this.targetLayout,y)||m,h=!f&&m;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||h||f&&(p||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(d,h);const x={...Cu(v,"layout"),onPlay:P,onComplete:g};(c.shouldReduceMotion||this.options.layoutRoot)&&(x.delay=0,x.type=!1),this.startAnimation(x)}else f||bd(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=y})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const s=this.getStack();s&&s.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,Rt(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(_w),this.animationId++)}getTransformTemplate(){const{visualElement:s}=this.options;return s&&s.getProps().transformTemplate}willUpdate(s=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let c=0;cthis.update()))}clearAllSnapshots(){this.nodes.forEach(Dw),this.sharedNodes.forEach(Ow)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,X.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){X.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let l=0;l{const C=x/1e3;Id(d.x,s.x,C),Id(d.y,s.y,C),this.setTargetDelta(d),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&($r(f,this.layout.layoutBox,this.relativeParent.layout.layoutBox),Fw(this.relativeTarget,this.relativeTargetOrigin,f,C),h&&yw(this.relativeTarget,h)&&(this.isProjectionDirty=!1),h||(h=ue()),Ke(h,this.relativeTarget)),v&&(this.animationValues=c,fw(c,u,this.latestValues,C,p,g)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=C},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(s){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(Rt(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=X.update(()=>{si.hasAnimatedSinceResize=!0,this.currentAnimation=kw(0,jd,{...s,onUpdate:a=>{this.mixTargetDelta(a),s.onUpdate&&s.onUpdate(a)},onComplete:()=>{s.onComplete&&s.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const s=this.getStack();s&&s.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(jd),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const s=this.getLead();let{targetWithTransforms:a,target:l,layout:u,latestValues:c}=s;if(!(!a||!l||!u)){if(this!==s&&this.layout&&u&&Vm(this.options.animationType,this.layout.layoutBox,u.layoutBox)){l=this.target||ue();const d=$e(this.layout.layoutBox.x);l.x.min=s.target.x.min,l.x.max=l.x.min+d;const f=$e(this.layout.layoutBox.y);l.y.min=s.target.y.min,l.y.max=l.y.min+f}Ke(a,l),Yn(a,c),Ur(this.projectionDeltaWithTransform,this.layoutCorrected,a,c)}}registerSharedNode(s,a){this.sharedNodes.has(s)||this.sharedNodes.set(s,new xw),this.sharedNodes.get(s).add(a);const u=a.options.initialPromotionConfig;a.promote({transition:u?u.transition:void 0,preserveFollowOpacity:u&&u.shouldPreserveFollowOpacity?u.shouldPreserveFollowOpacity(a):void 0})}isLead(){const s=this.getStack();return s?s.lead===this:!0}getLead(){var s;const{layoutId:a}=this.options;return a?((s=this.getStack())===null||s===void 0?void 0:s.lead)||this:this}getPrevLead(){var s;const{layoutId:a}=this.options;return a?(s=this.getStack())===null||s===void 0?void 0:s.prevLead:void 0}getStack(){const{layoutId:s}=this.options;if(s)return this.root.sharedNodes.get(s)}promote({needsReset:s,transition:a,preserveFollowOpacity:l}={}){const u=this.getStack();u&&u.promote(this,l),s&&(this.projectionDelta=void 0,this.needsReset=!0),a&&this.setOptions({transition:a})}relegate(){const s=this.getStack();return s?s.relegate(this):!1}resetRotation(){const{visualElement:s}=this.options;if(!s)return;let a=!1;const{latestValues:l}=s;if((l.rotate||l.rotateX||l.rotateY||l.rotateZ)&&(a=!0),!a)return;const u={};for(let c=0;c{var a;return(a=s.currentAnimation)===null||a===void 0?void 0:a.stop()}),this.root.nodes.forEach(Vd),this.root.sharedNodes.clear()}}}function Rw(e){e.updateLayout()}function Mw(e){var t;const n=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:o}=e.layout,{animationType:i}=e.options,s=n.source!==e.layout.source;i==="size"?Qe(d=>{const f=s?n.measuredBox[d]:n.layoutBox[d],m=$e(f);f.min=r[d].min,f.max=f.min+m}):Vm(i,n.layoutBox,r)&&Qe(d=>{const f=s?n.measuredBox[d]:n.layoutBox[d],m=$e(r[d]);f.max=f.min+m,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[d].max=e.relativeTarget[d].min+m)});const a=Qn();Ur(a,r,n.layoutBox);const l=Qn();s?Ur(l,e.applyTransform(o,!0),n.measuredBox):Ur(l,r,n.layoutBox);const u=!Lm(a);let c=!1;if(!e.resumeFrom){const d=e.getClosestProjectingParent();if(d&&!d.resumeFrom){const{snapshot:f,layout:m}=d;if(f&&m){const y=ue();$r(y,n.layoutBox,f.layoutBox);const v=ue();$r(v,r,m.layoutBox),Dm(y,v)||(c=!0),d.options.layoutRoot&&(e.relativeTarget=v,e.relativeTargetOrigin=y,e.relativeParent=d)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:l,layoutDelta:a,hasLayoutChanged:u,hasRelativeTargetChanged:c})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function Aw(e){dn.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function Lw(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function Dw(e){e.clearSnapshot()}function Vd(e){e.clearMeasurements()}function jw(e){e.isLayoutDirty=!1}function Vw(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function bd(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function bw(e){e.resolveTargetDelta()}function Iw(e){e.calcProjection()}function _w(e){e.resetRotation()}function Ow(e){e.removeLeadSnapshot()}function Id(e,t,n){e.translate=te(t.translate,0,n),e.scale=te(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function _d(e,t,n,r){e.min=te(t.min,n.min,r),e.max=te(t.max,n.max,r)}function Fw(e,t,n,r){_d(e.x,t.x,n.x,r),_d(e.y,t.y,n.y,r)}function zw(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const Bw={duration:.45,ease:[.4,0,.1,1]},Od=e=>typeof navigator<"u"&&navigator.userAgent.toLowerCase().includes(e),Fd=Od("applewebkit/")&&!Od("chrome/")?Math.round:ie;function zd(e){e.min=Fd(e.min),e.max=Fd(e.max)}function Uw(e){zd(e.x),zd(e.y)}function Vm(e,t,n){return e==="position"||e==="preserve-aspect"&&!tl(Ad(t),Ad(n),.2)}const $w=jm({attachResizeListener:(e,t)=>wt(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Xs={current:void 0},bm=jm({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Xs.current){const e=new $w({});e.mount(window),e.setOptions({layoutScroll:!0}),Xs.current=e}return Xs.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),Ww={pan:{Feature:sw},drag:{Feature:iw,ProjectionNode:bm,MeasureLayout:Rm}},Hw=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function Gw(e){const t=Hw.exec(e);if(!t)return[,];const[,n,r]=t;return[n,r]}function il(e,t,n=1){const[r,o]=Gw(e);if(!r)return;const i=window.getComputedStyle(t).getPropertyValue(r);if(i){const s=i.trim();return vm(s)?parseFloat(s):s}else return Qa(o)?il(o,t,n+1):o}function Kw(e,{...t},n){const r=e.current;if(!(r instanceof Element))return{target:t,transitionEnd:n};n&&(n={...n}),e.values.forEach(o=>{const i=o.get();if(!Qa(i))return;const s=il(i,r);s&&o.set(s)});for(const o in t){const i=t[o];if(!Qa(i))continue;const s=il(i,r);s&&(t[o]=s,n||(n={}),n[o]===void 0&&(n[o]=i))}return{target:t,transitionEnd:n}}const Qw=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),Im=e=>Qw.has(e),Yw=e=>Object.keys(e).some(Im),Bd=e=>e===Mn||e===I,Ud=(e,t)=>parseFloat(e.split(", ")[t]),$d=(e,t)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const o=r.match(/^matrix3d\((.+)\)$/);if(o)return Ud(o[1],t);{const i=r.match(/^matrix\((.+)\)$/);return i?Ud(i[1],e):0}},Xw=new Set(["x","y","z"]),Zw=vo.filter(e=>!Xw.has(e));function qw(e){const t=[];return Zw.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t.length&&e.render(),t}const cr={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:$d(4,13),y:$d(5,14)};cr.translateX=cr.x;cr.translateY=cr.y;const Jw=(e,t,n)=>{const r=t.measureViewportBox(),o=t.current,i=getComputedStyle(o),{display:s}=i,a={};s==="none"&&t.setStaticValue("display",e.display||"block"),n.forEach(u=>{a[u]=cr[u](r,i)}),t.render();const l=t.measureViewportBox();return n.forEach(u=>{const c=t.getValue(u);c&&c.jump(a[u]),e[u]=cr[u](l,i)}),e},eS=(e,t,n={},r={})=>{t={...t},r={...r};const o=Object.keys(t).filter(Im);let i=[],s=!1;const a=[];if(o.forEach(l=>{const u=e.getValue(l);if(!e.hasValue(l))return;let c=n[l],d=Pr(c);const f=t[l];let m;if(Vi(f)){const y=f.length,v=f[0]===null?1:0;c=f[v],d=Pr(c);for(let P=v;P=0?window.pageYOffset:null,u=Jw(t,e,a);return i.length&&i.forEach(([c,d])=>{e.getValue(c).set(d)}),e.render(),is&&l!==null&&window.scrollTo({top:l}),{target:u,transitionEnd:r}}else return{target:t,transitionEnd:r}};function tS(e,t,n,r){return Yw(t)?eS(e,t,n,r):{target:t,transitionEnd:r}}const nS=(e,t,n,r)=>{const o=Kw(e,t,r);return t=o.target,r=o.transitionEnd,tS(e,t,n,r)},sl={current:null},_m={current:!1};function rS(){if(_m.current=!0,!!is)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>sl.current=e.matches;e.addListener(t),t()}else sl.current=!1}function oS(e,t,n){const{willChange:r}=t;for(const o in t){const i=t[o],s=n[o];if(be(i))e.addValue(o,i),Oi(r)&&r.add(o);else if(be(s))e.addValue(o,ur(i,{owner:e})),Oi(r)&&r.remove(o);else if(s!==i)if(e.hasValue(o)){const a=e.getValue(o);!a.hasAnimated&&a.set(i)}else{const a=e.getStaticValue(o);e.addValue(o,ur(a!==void 0?a:i,{owner:e}))}}for(const o in n)t[o]===void 0&&e.removeValue(o);return t}const Wd=new WeakMap,Om=Object.keys(lo),iS=Om.length,Hd=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],sS=cu.length;class aS{constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:o,visualState:i},s={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.scheduleRender=()=>X.render(this.render,!1,!0);const{latestValues:a,renderState:l}=i;this.latestValues=a,this.baseTarget={...a},this.initialValues=n.initial?{...a}:{},this.renderState=l,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=o,this.options=s,this.isControllingVariants=as(n),this.isVariantNode=Ph(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:u,...c}=this.scrapeMotionValuesFromProps(n,{});for(const d in c){const f=c[d];a[d]!==void 0&&be(f)&&(f.set(a[d],!1),Oi(u)&&u.add(d))}}scrapeMotionValuesFromProps(t,n){return{}}mount(t){this.current=t,Wd.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,r)=>this.bindToMotionValue(r,n)),_m.current||rS(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:sl.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){Wd.delete(this.current),this.projection&&this.projection.unmount(),Rt(this.notifyUpdate),Rt(this.render),this.valueSubscriptions.forEach(t=>t()),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features)this.features[t].unmount();this.current=null}bindToMotionValue(t,n){const r=Rn.has(t),o=n.on("change",s=>{this.latestValues[t]=s,this.props.onUpdate&&X.update(this.notifyUpdate,!1,!0),r&&this.projection&&(this.projection.isTransformDirty=!0)}),i=n.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(t,()=>{o(),i()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}loadFeatures({children:t,...n},r,o,i){let s,a;for(let l=0;lthis.scheduleRender(),animationType:typeof u=="string"?u:"both",initialPromotionConfig:i,layoutScroll:f,layoutRoot:m})}return a}updateFeatures(){for(const t in this.features){const n=this.features[t];n.isMounted?n.update():(n.mount(),n.isMounted=!0)}}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):ue()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}makeTargetAnimatable(t,n=!0){return this.makeTargetAnimatableFromInstance(t,this.props,n)}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;rn.variantChildren.delete(t)}addValue(t,n){n!==this.values.get(t)&&(this.removeValue(t),this.bindToMotionValue(t,n)),this.values.set(t,n),this.latestValues[t]=n.get()}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=ur(n,{owner:this}),this.addValue(t,r)),r}readValue(t){var n;return this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(n=this.getBaseTargetFromProps(this.props,t))!==null&&n!==void 0?n:this.readValueFromInstance(this.current,t,this.options)}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n;const{initial:r}=this.props,o=typeof r=="string"||typeof r=="object"?(n=vu(this.props,r))===null||n===void 0?void 0:n[t]:void 0;if(r&&o!==void 0)return o;const i=this.getBaseTargetFromProps(this.props,t);return i!==void 0&&!be(i)?i:this.initialValues[t]!==void 0&&o===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new Nu),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class Fm extends aS{sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}makeTargetAnimatableFromInstance({transition:t,transitionEnd:n,...r},{transformValues:o},i){let s=Tx(r,t||{},this);if(o&&(n&&(n=o(n)),r&&(r=o(r)),s&&(s=o(s))),i){Px(this,r,s);const a=nS(this,r,s,n);n=a.transitionEnd,r=a.target}return{transition:t,transitionEnd:n,...r}}}function lS(e){return window.getComputedStyle(e)}class uS extends Fm{constructor(){super(...arguments),this.type="html"}readValueFromInstance(t,n){if(Rn.has(n)){const r=Pu(n);return r&&r.default||0}else{const r=lS(t),o=(Nh(n)?r.getPropertyValue(n):r[n])||0;return typeof o=="string"?o.trim():o}}measureInstanceViewportBox(t,{transformPagePoint:n}){return Em(t,n)}build(t,n,r,o){fu(t,n,r,o.transformTemplate)}scrapeMotionValuesFromProps(t,n){return gu(t,n)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;be(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}renderInstance(t,n,r,o){jh(t,n,r,o)}}class cS extends Fm{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(Rn.has(n)){const r=Pu(n);return r&&r.default||0}return n=Vh.has(n)?n:lu(n),t.getAttribute(n)}measureInstanceViewportBox(){return ue()}scrapeMotionValuesFromProps(t,n){return Ih(t,n)}build(t,n,r,o){hu(t,n,r,this.isSVGTag,o.transformTemplate)}renderInstance(t,n,r,o){bh(t,n,r,o)}mount(t){this.isSVGTag=mu(t.tagName),super.mount(t)}}const dS=(e,t)=>du(e)?new cS(t,{enableHardwareAcceleration:!1}):new uS(t,{enableHardwareAcceleration:!0}),fS={layout:{ProjectionNode:bm,MeasureLayout:Rm}},pS={...Fx,...i1,...Ww,...fS},ae=p0((e,t)=>G0(e,t,pS,dS));function zm(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;te&&(t=0,r=n,n=new Map)}return{get:function(s){var a=n.get(s);if(a!==void 0)return a;if((a=r.get(s))!==void 0)return o(s,a),a},set:function(s,a){n.has(s)?n.set(s,a):o(s,a)}}}var Wm="!";function SS(e){var t=e.separator||":",n=t.length===1,r=t[0],o=t.length;return function(s){for(var a=[],l=0,u=0,c,d=0;du?c-u:void 0;return{modifiers:a,hasImportantModifier:y,baseClassName:v,maybePostfixModifierPosition:P}}}function PS(e){if(e.length<=1)return e;var t=[],n=[];return e.forEach(function(r){var o=r[0]==="[";o?(t.push.apply(t,n.sort().concat([r])),n=[]):n.push(r)}),t.push.apply(t,n.sort()),t}function CS(e){return{cache:wS(e.cacheSize),splitModifiers:SS(e),...mS(e)}}var TS=/\s+/;function kS(e,t){var n=t.splitModifiers,r=t.getClassGroupId,o=t.getConflictingClassGroupIds,i=new Set;return e.trim().split(TS).map(function(s){var a=n(s),l=a.modifiers,u=a.hasImportantModifier,c=a.baseClassName,d=a.maybePostfixModifierPosition,f=r(d?c.substring(0,d):c),m=!!d;if(!f){if(!d)return{isTailwindClass:!1,originalClassName:s};if(f=r(c),!f)return{isTailwindClass:!1,originalClassName:s};m=!1}var y=PS(l).join(":"),v=u?y+Wm:y;return{isTailwindClass:!0,modifierId:v,classGroupId:f,originalClassName:s,hasPostfixModifier:m}}).reverse().filter(function(s){if(!s.isTailwindClass)return!0;var a=s.modifierId,l=s.classGroupId,u=s.hasPostfixModifier,c=a+l;return i.has(c)?!1:(i.add(c),o(l,u).forEach(function(d){return i.add(a+d)}),!0)}).reverse().map(function(s){return s.originalClassName}).join(" ")}function ES(){for(var e=arguments.length,t=new Array(e),n=0;n{let n=!1;const r=e.map(o=>{const i=Yd(o,t);return!n&&typeof i=="function"&&(n=!0),i});if(n)return()=>{for(let o=0;o{const{children:i,...s}=r,a=S.Children.toArray(i),l=a.find(HS);if(l){const u=l.props.children,c=a.map(d=>d===l?S.Children.count(u)>1?S.Children.only(null):S.isValidElement(u)?u.props.children:null:d);return w.jsx(t,{...s,ref:o,children:S.isValidElement(u)?S.cloneElement(u,void 0,c):null})}return w.jsx(t,{...s,ref:o,children:i})});return n.displayName=`${e}.Slot`,n}var US=zi("Slot");function $S(e){const t=S.forwardRef((n,r)=>{const{children:o,...i}=n;if(S.isValidElement(o)){const s=KS(o),a=GS(i,o.props);return o.type!==S.Fragment&&(a.ref=r?Km(r,s):s),S.cloneElement(o,a)}return S.Children.count(o)>1?S.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var WS=Symbol("radix.slottable");function HS(e){return S.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===WS}function GS(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...a)=>{const l=i(...a);return o(...a),l}:o&&(n[r]=o):r==="style"?n[r]={...o,...i}:r==="className"&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}function KS(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}const Xd=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,Zd=Bm,Qm=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return Zd(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:o,defaultVariants:i}=t,s=Object.keys(o).map(u=>{const c=n==null?void 0:n[u],d=i==null?void 0:i[u];if(c===null)return null;const f=Xd(c)||Xd(d);return o[u][f]}),a=n&&Object.entries(n).reduce((u,c)=>{let[d,f]=c;return f===void 0||(u[d]=f),u},{}),l=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((u,c)=>{let{class:d,className:f,...m}=c;return Object.entries(m).every(y=>{let[v,P]=y;return Array.isArray(P)?P.includes({...i,...a}[v]):{...i,...a}[v]===P})?[...u,d,f]:u},[]);return Zd(e,s,l,n==null?void 0:n.class,n==null?void 0:n.className)},QS=Qm("inline-flex items-center justify-center rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),ai=he.forwardRef(({className:e,variant:t,size:n,asChild:r=!1,...o},i)=>{const s=r?US:"button";return w.jsx(s,{className:Ln(QS({variant:t,size:n,className:e})),ref:i,...o})});ai.displayName="Button";function Fe(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e==null||e(o),n===!1||!o.defaultPrevented)return t==null?void 0:t(o)}}function Ym(e,t=[]){let n=[];function r(i,s){const a=S.createContext(s),l=n.length;n=[...n,s];const u=d=>{var g;const{scope:f,children:m,...y}=d,v=((g=f==null?void 0:f[e])==null?void 0:g[l])||a,P=S.useMemo(()=>y,Object.values(y));return w.jsx(v.Provider,{value:P,children:m})};u.displayName=i+"Provider";function c(d,f){var v;const m=((v=f==null?void 0:f[e])==null?void 0:v[l])||a,y=S.useContext(m);if(y)return y;if(s!==void 0)return s;throw new Error(`\`${d}\` must be used within \`${i}\``)}return[u,c]}const o=()=>{const i=n.map(s=>S.createContext(s));return function(a){const l=(a==null?void 0:a[e])||i;return S.useMemo(()=>({[`__scope${e}`]:{...a,[e]:l}}),[a,l])}};return o.scopeName=e,[r,YS(o,...t)]}function YS(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(i){const s=r.reduce((a,{useScope:l,scopeName:u})=>{const d=l(i)[`__scope${u}`];return{...a,...d}},{});return S.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return n.scopeName=t.scopeName,n}function XS(e){const t=e+"CollectionProvider",[n,r]=Ym(t),[o,i]=n(t,{collectionRef:{current:null},itemMap:new Map}),s=v=>{const{scope:P,children:g}=v,p=he.useRef(null),h=he.useRef(new Map).current;return w.jsx(o,{scope:P,itemMap:h,collectionRef:p,children:g})};s.displayName=t;const a=e+"CollectionSlot",l=zi(a),u=he.forwardRef((v,P)=>{const{scope:g,children:p}=v,h=i(a,g),x=Tn(P,h.collectionRef);return w.jsx(l,{ref:x,children:p})});u.displayName=a;const c=e+"CollectionItemSlot",d="data-radix-collection-item",f=zi(c),m=he.forwardRef((v,P)=>{const{scope:g,children:p,...h}=v,x=he.useRef(null),C=Tn(P,x),k=i(c,g);return he.useEffect(()=>(k.itemMap.set(x,{ref:x,...h}),()=>void k.itemMap.delete(x))),w.jsx(f,{[d]:"",ref:C,children:p})});m.displayName=c;function y(v){const P=i(e+"CollectionConsumer",v);return he.useCallback(()=>{const p=P.collectionRef.current;if(!p)return[];const h=Array.from(p.querySelectorAll(`[${d}]`));return Array.from(P.itemMap.values()).sort((k,T)=>h.indexOf(k.ref.current)-h.indexOf(T.ref.current))},[P.collectionRef,P.itemMap])}return[{Provider:s,Slot:u,ItemSlot:m},y,r]}var ZS=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],mt=ZS.reduce((e,t)=>{const n=zi(`Primitive.${t}`),r=S.forwardRef((o,i)=>{const{asChild:s,...a}=o,l=s?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),w.jsx(l,{...a,ref:i})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function Xm(e,t){e&&rs.flushSync(()=>e.dispatchEvent(t))}function kn(e){const t=S.useRef(e);return S.useEffect(()=>{t.current=e}),S.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function qS(e,t=globalThis==null?void 0:globalThis.document){const n=kn(e);S.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var JS="DismissableLayer",ul="dismissableLayer.update",eP="dismissableLayer.pointerDownOutside",tP="dismissableLayer.focusOutside",qd,Zm=S.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),qm=S.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:i,onInteractOutside:s,onDismiss:a,...l}=e,u=S.useContext(Zm),[c,d]=S.useState(null),f=(c==null?void 0:c.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,m]=S.useState({}),y=Tn(t,T=>d(T)),v=Array.from(u.layers),[P]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),g=v.indexOf(P),p=c?v.indexOf(c):-1,h=u.layersWithOutsidePointerEventsDisabled.size>0,x=p>=g,C=rP(T=>{const E=T.target,D=[...u.branches].some(j=>j.contains(E));!x||D||(o==null||o(T),s==null||s(T),T.defaultPrevented||a==null||a())},f),k=oP(T=>{const E=T.target;[...u.branches].some(j=>j.contains(E))||(i==null||i(T),s==null||s(T),T.defaultPrevented||a==null||a())},f);return qS(T=>{p===u.layers.size-1&&(r==null||r(T),!T.defaultPrevented&&a&&(T.preventDefault(),a()))},f),S.useEffect(()=>{if(c)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(qd=f.body.style.pointerEvents,f.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(c)),u.layers.add(c),Jd(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(f.body.style.pointerEvents=qd)}},[c,f,n,u]),S.useEffect(()=>()=>{c&&(u.layers.delete(c),u.layersWithOutsidePointerEventsDisabled.delete(c),Jd())},[c,u]),S.useEffect(()=>{const T=()=>m({});return document.addEventListener(ul,T),()=>document.removeEventListener(ul,T)},[]),w.jsx(mt.div,{...l,ref:y,style:{pointerEvents:h?x?"auto":"none":void 0,...e.style},onFocusCapture:Fe(e.onFocusCapture,k.onFocusCapture),onBlurCapture:Fe(e.onBlurCapture,k.onBlurCapture),onPointerDownCapture:Fe(e.onPointerDownCapture,C.onPointerDownCapture)})});qm.displayName=JS;var nP="DismissableLayerBranch",Jm=S.forwardRef((e,t)=>{const n=S.useContext(Zm),r=S.useRef(null),o=Tn(t,r);return S.useEffect(()=>{const i=r.current;if(i)return n.branches.add(i),()=>{n.branches.delete(i)}},[n.branches]),w.jsx(mt.div,{...e,ref:o})});Jm.displayName=nP;function rP(e,t=globalThis==null?void 0:globalThis.document){const n=kn(e),r=S.useRef(!1),o=S.useRef(()=>{});return S.useEffect(()=>{const i=a=>{if(a.target&&!r.current){let l=function(){eg(eP,n,u,{discrete:!0})};const u={originalEvent:a};a.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=l,t.addEventListener("click",o.current,{once:!0})):l()}else t.removeEventListener("click",o.current);r.current=!1},s=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(s),t.removeEventListener("pointerdown",i),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function oP(e,t=globalThis==null?void 0:globalThis.document){const n=kn(e),r=S.useRef(!1);return S.useEffect(()=>{const o=i=>{i.target&&!r.current&&eg(tP,n,{originalEvent:i},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function Jd(){const e=new CustomEvent(ul);document.dispatchEvent(e)}function eg(e,t,n,{discrete:r}){const o=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?Xm(o,i):o.dispatchEvent(i)}var iP=qm,sP=Jm,co=globalThis!=null&&globalThis.document?S.useLayoutEffect:()=>{},aP="Portal",tg=S.forwardRef((e,t)=>{var a;const{container:n,...r}=e,[o,i]=S.useState(!1);co(()=>i(!0),[]);const s=n||o&&((a=globalThis==null?void 0:globalThis.document)==null?void 0:a.body);return s?n0.createPortal(w.jsx(mt.div,{...r,ref:t}),s):null});tg.displayName=aP;function lP(e,t){return S.useReducer((n,r)=>t[n][r]??n,e)}var ng=e=>{const{present:t,children:n}=e,r=uP(t),o=typeof n=="function"?n({present:r.isPresent}):S.Children.only(n),i=Tn(r.ref,cP(o));return typeof n=="function"||r.isPresent?S.cloneElement(o,{ref:i}):null};ng.displayName="Presence";function uP(e){const[t,n]=S.useState(),r=S.useRef(null),o=S.useRef(e),i=S.useRef("none"),s=e?"mounted":"unmounted",[a,l]=lP(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return S.useEffect(()=>{const u=Ho(r.current);i.current=a==="mounted"?u:"none"},[a]),co(()=>{const u=r.current,c=o.current;if(c!==e){const f=i.current,m=Ho(u);e?l("MOUNT"):m==="none"||(u==null?void 0:u.display)==="none"?l("UNMOUNT"):l(c&&f!==m?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,l]),co(()=>{if(t){let u;const c=t.ownerDocument.defaultView??window,d=m=>{const v=Ho(r.current).includes(m.animationName);if(m.target===t&&v&&(l("ANIMATION_END"),!o.current)){const P=t.style.animationFillMode;t.style.animationFillMode="forwards",u=c.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=P)})}},f=m=>{m.target===t&&(i.current=Ho(r.current))};return t.addEventListener("animationstart",f),t.addEventListener("animationcancel",d),t.addEventListener("animationend",d),()=>{c.clearTimeout(u),t.removeEventListener("animationstart",f),t.removeEventListener("animationcancel",d),t.removeEventListener("animationend",d)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:S.useCallback(u=>{r.current=u?getComputedStyle(u):null,n(u)},[])}}function Ho(e){return(e==null?void 0:e.animationName)||"none"}function cP(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var dP=Hg[" useInsertionEffect ".trim().toString()]||co;function fP({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[o,i,s]=pP({defaultProp:t,onChange:n}),a=e!==void 0,l=a?e:o;{const c=S.useRef(e!==void 0);S.useEffect(()=>{const d=c.current;d!==a&&console.warn(`${r} is changing from ${d?"controlled":"uncontrolled"} to ${a?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),c.current=a},[a,r])}const u=S.useCallback(c=>{var d;if(a){const f=hP(c)?c(e):c;f!==e&&((d=s.current)==null||d.call(s,f))}else i(c)},[a,e,i,s]);return[l,u]}function pP({defaultProp:e,onChange:t}){const[n,r]=S.useState(e),o=S.useRef(n),i=S.useRef(t);return dP(()=>{i.current=t},[t]),S.useEffect(()=>{var s;o.current!==n&&((s=i.current)==null||s.call(i,n),o.current=n)},[n,o]),[n,r,i]}function hP(e){return typeof e=="function"}var mP=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),gP="VisuallyHidden",Mu=S.forwardRef((e,t)=>w.jsx(mt.span,{...e,ref:t,style:{...mP,...e.style}}));Mu.displayName=gP;var Au="ToastProvider",[Lu,vP,yP]=XS("Toast"),[rg,eC]=Ym("Toast",[yP]),[xP,ds]=rg(Au),og=e=>{const{__scopeToast:t,label:n="Notification",duration:r=5e3,swipeDirection:o="right",swipeThreshold:i=50,children:s}=e,[a,l]=S.useState(null),[u,c]=S.useState(0),d=S.useRef(!1),f=S.useRef(!1);return n.trim()||console.error(`Invalid prop \`label\` supplied to \`${Au}\`. Expected non-empty \`string\`.`),w.jsx(Lu.Provider,{scope:t,children:w.jsx(xP,{scope:t,label:n,duration:r,swipeDirection:o,swipeThreshold:i,toastCount:u,viewport:a,onViewportChange:l,onToastAdd:S.useCallback(()=>c(m=>m+1),[]),onToastRemove:S.useCallback(()=>c(m=>m-1),[]),isFocusedToastEscapeKeyDownRef:d,isClosePausedRef:f,children:s})})};og.displayName=Au;var ig="ToastViewport",wP=["F8"],cl="toast.viewportPause",dl="toast.viewportResume",sg=S.forwardRef((e,t)=>{const{__scopeToast:n,hotkey:r=wP,label:o="Notifications ({hotkey})",...i}=e,s=ds(ig,n),a=vP(n),l=S.useRef(null),u=S.useRef(null),c=S.useRef(null),d=S.useRef(null),f=Tn(t,d,s.onViewportChange),m=r.join("+").replace(/Key/g,"").replace(/Digit/g,""),y=s.toastCount>0;S.useEffect(()=>{const P=g=>{var h;r.length!==0&&r.every(x=>g[x]||g.code===x)&&((h=d.current)==null||h.focus())};return document.addEventListener("keydown",P),()=>document.removeEventListener("keydown",P)},[r]),S.useEffect(()=>{const P=l.current,g=d.current;if(y&&P&&g){const p=()=>{if(!s.isClosePausedRef.current){const k=new CustomEvent(cl);g.dispatchEvent(k),s.isClosePausedRef.current=!0}},h=()=>{if(s.isClosePausedRef.current){const k=new CustomEvent(dl);g.dispatchEvent(k),s.isClosePausedRef.current=!1}},x=k=>{!P.contains(k.relatedTarget)&&h()},C=()=>{P.contains(document.activeElement)||h()};return P.addEventListener("focusin",p),P.addEventListener("focusout",x),P.addEventListener("pointermove",p),P.addEventListener("pointerleave",C),window.addEventListener("blur",p),window.addEventListener("focus",h),()=>{P.removeEventListener("focusin",p),P.removeEventListener("focusout",x),P.removeEventListener("pointermove",p),P.removeEventListener("pointerleave",C),window.removeEventListener("blur",p),window.removeEventListener("focus",h)}}},[y,s.isClosePausedRef]);const v=S.useCallback(({tabbingDirection:P})=>{const p=a().map(h=>{const x=h.ref.current,C=[x,...jP(x)];return P==="forwards"?C:C.reverse()});return(P==="forwards"?p.reverse():p).flat()},[a]);return S.useEffect(()=>{const P=d.current;if(P){const g=p=>{var C,k,T;const h=p.altKey||p.ctrlKey||p.metaKey;if(p.key==="Tab"&&!h){const E=document.activeElement,D=p.shiftKey;if(p.target===P&&D){(C=u.current)==null||C.focus();return}const b=v({tabbingDirection:D?"backwards":"forwards"}),J=b.findIndex(A=>A===E);Zs(b.slice(J+1))?p.preventDefault():D?(k=u.current)==null||k.focus():(T=c.current)==null||T.focus()}};return P.addEventListener("keydown",g),()=>P.removeEventListener("keydown",g)}},[a,v]),w.jsxs(sP,{ref:l,role:"region","aria-label":o.replace("{hotkey}",m),tabIndex:-1,style:{pointerEvents:y?void 0:"none"},children:[y&&w.jsx(fl,{ref:u,onFocusFromOutsideViewport:()=>{const P=v({tabbingDirection:"forwards"});Zs(P)}}),w.jsx(Lu.Slot,{scope:n,children:w.jsx(mt.ol,{tabIndex:-1,...i,ref:f})}),y&&w.jsx(fl,{ref:c,onFocusFromOutsideViewport:()=>{const P=v({tabbingDirection:"backwards"});Zs(P)}})]})});sg.displayName=ig;var ag="ToastFocusProxy",fl=S.forwardRef((e,t)=>{const{__scopeToast:n,onFocusFromOutsideViewport:r,...o}=e,i=ds(ag,n);return w.jsx(Mu,{"aria-hidden":!0,tabIndex:0,...o,ref:t,style:{position:"fixed"},onFocus:s=>{var u;const a=s.relatedTarget;!((u=i.viewport)!=null&&u.contains(a))&&r()}})});fl.displayName=ag;var So="Toast",SP="toast.swipeStart",PP="toast.swipeMove",CP="toast.swipeCancel",TP="toast.swipeEnd",lg=S.forwardRef((e,t)=>{const{forceMount:n,open:r,defaultOpen:o,onOpenChange:i,...s}=e,[a,l]=fP({prop:r,defaultProp:o??!0,onChange:i,caller:So});return w.jsx(ng,{present:n||a,children:w.jsx(NP,{open:a,...s,ref:t,onClose:()=>l(!1),onPause:kn(e.onPause),onResume:kn(e.onResume),onSwipeStart:Fe(e.onSwipeStart,u=>{u.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:Fe(e.onSwipeMove,u=>{const{x:c,y:d}=u.detail.delta;u.currentTarget.setAttribute("data-swipe","move"),u.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${c}px`),u.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${d}px`)}),onSwipeCancel:Fe(e.onSwipeCancel,u=>{u.currentTarget.setAttribute("data-swipe","cancel"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),u.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:Fe(e.onSwipeEnd,u=>{const{x:c,y:d}=u.detail.delta;u.currentTarget.setAttribute("data-swipe","end"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),u.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${c}px`),u.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${d}px`),l(!1)})})})});lg.displayName=So;var[kP,EP]=rg(So,{onClose(){}}),NP=S.forwardRef((e,t)=>{const{__scopeToast:n,type:r="foreground",duration:o,open:i,onClose:s,onEscapeKeyDown:a,onPause:l,onResume:u,onSwipeStart:c,onSwipeMove:d,onSwipeCancel:f,onSwipeEnd:m,...y}=e,v=ds(So,n),[P,g]=S.useState(null),p=Tn(t,A=>g(A)),h=S.useRef(null),x=S.useRef(null),C=o||v.duration,k=S.useRef(0),T=S.useRef(C),E=S.useRef(0),{onToastAdd:D,onToastRemove:j}=v,$=kn(()=>{var Z;(P==null?void 0:P.contains(document.activeElement))&&((Z=v.viewport)==null||Z.focus()),s()}),b=S.useCallback(A=>{!A||A===1/0||(window.clearTimeout(E.current),k.current=new Date().getTime(),E.current=window.setTimeout($,A))},[$]);S.useEffect(()=>{const A=v.viewport;if(A){const Z=()=>{b(T.current),u==null||u()},z=()=>{const se=new Date().getTime()-k.current;T.current=T.current-se,window.clearTimeout(E.current),l==null||l()};return A.addEventListener(cl,z),A.addEventListener(dl,Z),()=>{A.removeEventListener(cl,z),A.removeEventListener(dl,Z)}}},[v.viewport,C,l,u,b]),S.useEffect(()=>{i&&!v.isClosePausedRef.current&&b(C)},[i,C,v.isClosePausedRef,b]),S.useEffect(()=>(D(),()=>j()),[D,j]);const J=S.useMemo(()=>P?mg(P):null,[P]);return v.viewport?w.jsxs(w.Fragment,{children:[J&&w.jsx(RP,{__scopeToast:n,role:"status","aria-live":r==="foreground"?"assertive":"polite","aria-atomic":!0,children:J}),w.jsx(kP,{scope:n,onClose:$,children:rs.createPortal(w.jsx(Lu.ItemSlot,{scope:n,children:w.jsx(iP,{asChild:!0,onEscapeKeyDown:Fe(a,()=>{v.isFocusedToastEscapeKeyDownRef.current||$(),v.isFocusedToastEscapeKeyDownRef.current=!1}),children:w.jsx(mt.li,{role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":i?"open":"closed","data-swipe-direction":v.swipeDirection,...y,ref:p,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:Fe(e.onKeyDown,A=>{A.key==="Escape"&&(a==null||a(A.nativeEvent),A.nativeEvent.defaultPrevented||(v.isFocusedToastEscapeKeyDownRef.current=!0,$()))}),onPointerDown:Fe(e.onPointerDown,A=>{A.button===0&&(h.current={x:A.clientX,y:A.clientY})}),onPointerMove:Fe(e.onPointerMove,A=>{if(!h.current)return;const Z=A.clientX-h.current.x,z=A.clientY-h.current.y,se=!!x.current,R=["left","right"].includes(v.swipeDirection),L=["left","up"].includes(v.swipeDirection)?Math.min:Math.max,_=R?L(0,Z):0,V=R?0:L(0,z),B=A.pointerType==="touch"?10:2,H={x:_,y:V},Ie={originalEvent:A,delta:H};se?(x.current=H,Go(PP,d,Ie,{discrete:!1})):ef(H,v.swipeDirection,B)?(x.current=H,Go(SP,c,Ie,{discrete:!1}),A.target.setPointerCapture(A.pointerId)):(Math.abs(Z)>B||Math.abs(z)>B)&&(h.current=null)}),onPointerUp:Fe(e.onPointerUp,A=>{const Z=x.current,z=A.target;if(z.hasPointerCapture(A.pointerId)&&z.releasePointerCapture(A.pointerId),x.current=null,h.current=null,Z){const se=A.currentTarget,R={originalEvent:A,delta:Z};ef(Z,v.swipeDirection,v.swipeThreshold)?Go(TP,m,R,{discrete:!0}):Go(CP,f,R,{discrete:!0}),se.addEventListener("click",L=>L.preventDefault(),{once:!0})}})})})}),v.viewport)})]}):null}),RP=e=>{const{__scopeToast:t,children:n,...r}=e,o=ds(So,t),[i,s]=S.useState(!1),[a,l]=S.useState(!1);return LP(()=>s(!0)),S.useEffect(()=>{const u=window.setTimeout(()=>l(!0),1e3);return()=>window.clearTimeout(u)},[]),a?null:w.jsx(tg,{asChild:!0,children:w.jsx(Mu,{...r,children:i&&w.jsxs(w.Fragment,{children:[o.label," ",n]})})})},MP="ToastTitle",ug=S.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return w.jsx(mt.div,{...r,ref:t})});ug.displayName=MP;var AP="ToastDescription",cg=S.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return w.jsx(mt.div,{...r,ref:t})});cg.displayName=AP;var dg="ToastAction",fg=S.forwardRef((e,t)=>{const{altText:n,...r}=e;return n.trim()?w.jsx(hg,{altText:n,asChild:!0,children:w.jsx(Du,{...r,ref:t})}):(console.error(`Invalid prop \`altText\` supplied to \`${dg}\`. Expected non-empty \`string\`.`),null)});fg.displayName=dg;var pg="ToastClose",Du=S.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e,o=EP(pg,n);return w.jsx(hg,{asChild:!0,children:w.jsx(mt.button,{type:"button",...r,ref:t,onClick:Fe(e.onClick,o.onClose)})})});Du.displayName=pg;var hg=S.forwardRef((e,t)=>{const{__scopeToast:n,altText:r,...o}=e;return w.jsx(mt.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":r||void 0,...o,ref:t})});function mg(e){const t=[];return Array.from(e.childNodes).forEach(r=>{if(r.nodeType===r.TEXT_NODE&&r.textContent&&t.push(r.textContent),DP(r)){const o=r.ariaHidden||r.hidden||r.style.display==="none",i=r.dataset.radixToastAnnounceExclude==="";if(!o)if(i){const s=r.dataset.radixToastAnnounceAlt;s&&t.push(s)}else t.push(...mg(r))}}),t}function Go(e,t,n,{discrete:r}){const o=n.originalEvent.currentTarget,i=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?Xm(o,i):o.dispatchEvent(i)}var ef=(e,t,n=0)=>{const r=Math.abs(e.x),o=Math.abs(e.y),i=r>o;return t==="left"||t==="right"?i&&r>n:!i&&o>n};function LP(e=()=>{}){const t=kn(e);co(()=>{let n=0,r=0;return n=window.requestAnimationFrame(()=>r=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(n),window.cancelAnimationFrame(r)}},[t])}function DP(e){return e.nodeType===e.ELEMENT_NODE}function jP(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Zs(e){const t=document.activeElement;return e.some(n=>n===t?!0:(n.focus(),document.activeElement!==t))}var VP=og,gg=sg,vg=lg,yg=ug,xg=cg,wg=fg,Sg=Du,bP={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const IP=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Ge=(e,t)=>{const n=S.forwardRef(({color:r="currentColor",size:o=24,strokeWidth:i=2,absoluteStrokeWidth:s,children:a,...l},u)=>S.createElement("svg",{ref:u,...bP,width:o,height:o,stroke:r,strokeWidth:s?Number(i)*24/Number(o):i,className:`lucide lucide-${IP(e)}`,...l},[...t.map(([c,d])=>S.createElement(c,d)),...(Array.isArray(a)?a:[a])||[]]));return n.displayName=`${e}`,n},tf=Ge("Award",[["circle",{cx:"12",cy:"8",r:"6",key:"1vp47v"}],["path",{d:"M15.477 12.89 17 22l-5-3-5 3 1.523-9.11",key:"em7aur"}]]),nf=Ge("BookOpen",[["path",{d:"M2 3h6a4 4 0 0 1 4 4v14a3 3 0 0 0-3-3H2z",key:"vv98re"}],["path",{d:"M22 3h-6a4 4 0 0 0-4 4v14a3 3 0 0 1 3-3h7z",key:"1cyq3y"}]]),_P=Ge("Briefcase",[["rect",{width:"20",height:"14",x:"2",y:"7",rx:"2",ry:"2",key:"eto64e"}],["path",{d:"M16 21V5a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v16",key:"zwj3tp"}]]),rf=Ge("Building",[["rect",{width:"16",height:"20",x:"4",y:"2",rx:"2",ry:"2",key:"76otgf"}],["path",{d:"M9 22v-4h6v4",key:"r93iot"}],["path",{d:"M8 6h.01",key:"1dz90k"}],["path",{d:"M16 6h.01",key:"1x0f13"}],["path",{d:"M12 6h.01",key:"1vi96p"}],["path",{d:"M12 10h.01",key:"1nrarc"}],["path",{d:"M12 14h.01",key:"1etili"}],["path",{d:"M16 10h.01",key:"1m94wz"}],["path",{d:"M16 14h.01",key:"1gbofw"}],["path",{d:"M8 10h.01",key:"19clt8"}],["path",{d:"M8 14h.01",key:"6423bh"}]]),OP=Ge("FileText",[["path",{d:"M14.5 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7.5L14.5 2z",key:"1nnpy2"}],["polyline",{points:"14 2 14 8 20 8",key:"1ew0cm"}],["line",{x1:"16",x2:"8",y1:"13",y2:"13",key:"14keom"}],["line",{x1:"16",x2:"8",y1:"17",y2:"17",key:"17nazh"}],["line",{x1:"10",x2:"8",y1:"9",y2:"9",key:"1a5vjj"}]]),FP=Ge("Globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"2",x2:"22",y1:"12",y2:"12",key:"1dnqot"}],["path",{d:"M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z",key:"nb9nel"}]]),qs=Ge("GraduationCap",[["path",{d:"M22 10v6M2 10l10-5 10 5-10 5z",key:"1ef52a"}],["path",{d:"M6 12v5c3 3 9 3 12 0v-5",key:"1f75yj"}]]),Js=Ge("Mail",[["rect",{width:"20",height:"16",x:"2",y:"4",rx:"2",key:"18n3k1"}],["path",{d:"m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7",key:"1ocrg3"}]]),zP=Ge("MapPin",[["path",{d:"M20 10c0 6-8 12-8 12s-8-6-8-12a8 8 0 0 1 16 0Z",key:"2oe9fu"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]]),BP=Ge("Phone",[["path",{d:"M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z",key:"foiqr5"}]]),UP=Ge("Star",[["polygon",{points:"12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2",key:"8f66p6"}]]),of=Ge("Users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"1da9ce"}]]),$P=Ge("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),WP=VP,Pg=he.forwardRef(({className:e,...t},n)=>w.jsx(gg,{ref:n,className:Ln("fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]",e),...t}));Pg.displayName=gg.displayName;const HP=Qm("data-[swipe=move]:transition-none group relative pointer-events-auto flex w-full items-center justify-between space-x-4 overflow-hidden rounded-md border p-6 pr-8 shadow-lg transition-all data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full data-[state=closed]:slide-out-to-right-full",{variants:{variant:{default:"bg-background border",destructive:"group destructive border-destructive bg-destructive text-destructive-foreground"}},defaultVariants:{variant:"default"}}),Cg=he.forwardRef(({className:e,variant:t,...n},r)=>w.jsx(vg,{ref:r,className:Ln(HP({variant:t}),e),...n}));Cg.displayName=vg.displayName;const GP=he.forwardRef(({className:e,...t},n)=>w.jsx(wg,{ref:n,className:Ln("inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium ring-offset-background transition-colors hover:bg-secondary focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 group-[.destructive]:border-destructive/30 group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground group-[.destructive]:focus:ring-destructive",e),...t}));GP.displayName=wg.displayName;const Tg=he.forwardRef(({className:e,...t},n)=>w.jsx(Sg,{ref:n,className:Ln("absolute right-2 top-2 rounded-md p-1 text-foreground/50 opacity-0 transition-opacity hover:text-foreground focus:opacity-100 focus:outline-none focus:ring-2 group-hover:opacity-100 group-[.destructive]:text-red-300 group-[.destructive]:hover:text-red-50 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",e),"toast-close":"",...t,children:w.jsx($P,{className:"h-4 w-4"})}));Tg.displayName=Sg.displayName;const kg=he.forwardRef(({className:e,...t},n)=>w.jsx(yg,{ref:n,className:Ln("text-sm font-semibold",e),...t}));kg.displayName=yg.displayName;const Eg=he.forwardRef(({className:e,...t},n)=>w.jsx(xg,{ref:n,className:Ln("text-sm opacity-90",e),...t}));Eg.displayName=xg.displayName;const KP=1;let ea=0;function QP(){return ea=(ea+1)%Number.MAX_VALUE,ea.toString()}const ke={state:{toasts:[]},listeners:[],getState:()=>ke.state,setState:e=>{typeof e=="function"?ke.state=e(ke.state):ke.state={...ke.state,...e},ke.listeners.forEach(t=>t(ke.state))},subscribe:e=>(ke.listeners.push(e),()=>{ke.listeners=ke.listeners.filter(t=>t!==e)})},YP=({...e})=>{const t=QP(),n=o=>ke.setState(i=>({...i,toasts:i.toasts.map(s=>s.id===t?{...s,...o}:s)})),r=()=>ke.setState(o=>({...o,toasts:o.toasts.filter(i=>i.id!==t)}));return ke.setState(o=>({...o,toasts:[{...e,id:t,dismiss:r},...o.toasts].slice(0,KP)})),{id:t,dismiss:r,update:n}};function Ng(){const[e,t]=S.useState(ke.getState());return S.useEffect(()=>ke.subscribe(r=>{t(r)}),[]),S.useEffect(()=>{const n=[];return e.toasts.forEach(r=>{if(r.duration===1/0)return;const o=setTimeout(()=>{r.dismiss()},r.duration||5e3);n.push(o)}),()=>{n.forEach(r=>clearTimeout(r))}},[e.toasts]),{toast:YP,toasts:e.toasts}}function XP(){const{toasts:e}=Ng();return w.jsxs(WP,{children:[e.map(({id:t,title:n,description:r,action:o,...i})=>w.jsxs(Cg,{...i,children:[w.jsxs("div",{className:"grid gap-1",children:[n&&w.jsx(kg,{children:n}),r&&w.jsx(Eg,{children:r})]}),o,w.jsx(Tg,{})]},t)),w.jsx(Pg,{})]})}function ZP(){const{toast:e}=Ng(),t=()=>{e({title:"Contato Enviado!",description:"Entraremos em contato em breve."})},n={initial:{opacity:0,y:60},animate:{opacity:1,y:0},transition:{duration:.6}},r={animate:{transition:{staggerChildren:.1}}};return w.jsxs("div",{className:"min-h-screen bg-gradient-to-br from-slate-50 via-blue-50 to-indigo-100",children:[w.jsx(XP,{}),w.jsxs("section",{className:"relative overflow-hidden",children:[w.jsx("div",{className:"absolute inset-0 gradient-bg opacity-90"}),w.jsx("div",{className:"absolute inset-0 bg-black opacity-20"}),w.jsx("div",{className:"relative z-10 container mx-auto px-4 py-20",children:w.jsxs(ae.div,{className:"flex flex-col lg:flex-row items-center gap-12",initial:"initial",animate:"animate",variants:r,children:[w.jsxs(ae.div,{className:"lg:w-1/2 text-white",variants:n,children:[w.jsxs(ae.h1,{className:"text-5xl lg:text-7xl font-bold mb-6 leading-tight",variants:n,children:["Prof. Dr. ",w.jsx("span",{className:"text-yellow-300",children:"Rogério"})]}),w.jsx(ae.p,{className:"text-xl lg:text-2xl mb-8 text-blue-100",variants:n,children:"Educador, Pesquisador e Líder Acadêmico"}),w.jsx(ae.p,{className:"text-lg mb-8 text-blue-50 leading-relaxed",variants:n,children:"33 anos dedicados à educação, pesquisa em Relações Internacionais e liderança acadêmica. Transformando vidas através do conhecimento e da inovação educacional."}),w.jsxs(ae.div,{className:"flex flex-wrap gap-4",variants:n,children:[w.jsxs(ai,{size:"lg",className:"bg-yellow-500 hover:bg-yellow-600 text-black font-semibold px-8 py-3",onClick:t,children:[w.jsx(Js,{className:"mr-2 h-5 w-5"}),"Entre em Contato"]}),w.jsxs(ai,{size:"lg",variant:"outline",className:"border-white text-white hover:bg-white hover:text-blue-900 px-8 py-3",children:[w.jsx(OP,{className:"mr-2 h-5 w-5"}),"Currículo Completo"]})]})]}),w.jsx(ae.div,{className:"lg:w-1/2 flex justify-center",variants:n,children:w.jsxs("div",{className:"relative",children:[w.jsx("div",{className:"absolute inset-0 bg-gradient-to-r from-yellow-400 to-orange-500 rounded-full blur-3xl opacity-30 animate-pulse"}),w.jsx("img",{src:"https://storage.googleapis.com/hostinger-horizons-assets-prod/07db1e27-d6aa-4acd-8dcd-fba6c61e9e7f/ea2e5577565345b89208dac11f7b868d.png",alt:"Prof. Dr. Rogério - Educador e Pesquisador em Relações Internacionais",className:"relative z-10 w-80 h-80 lg:w-96 lg:h-96 rounded-full object-cover border-8 border-white shadow-2xl floating-animation"})]})})]})})]}),w.jsx("section",{className:"py-16 bg-white",children:w.jsx("div",{className:"container mx-auto px-4",children:w.jsx(ae.div,{className:"grid grid-cols-2 lg:grid-cols-4 gap-8",initial:"initial",whileInView:"animate",viewport:{once:!0},variants:r,children:[{number:"33",label:"Anos de Experiência",icon:tf},{number:"7+",label:"Posições de Liderança",icon:of},{number:"4",label:"Títulos de Doutor",icon:qs},{number:"5+",label:"Instituições",icon:rf}].map((o,i)=>w.jsxs(ae.div,{className:"text-center p-6 rounded-2xl bg-gradient-to-br from-blue-50 to-indigo-100 card-hover",variants:n,children:[w.jsx(o.icon,{className:"h-12 w-12 text-blue-600 mx-auto mb-4"}),w.jsx("div",{className:"text-4xl font-bold text-blue-900 mb-2",children:o.number}),w.jsx("div",{className:"text-gray-600 font-medium",children:o.label})]},i))})})}),w.jsx("section",{className:"py-20 bg-gradient-to-r from-blue-900 to-indigo-900",children:w.jsxs("div",{className:"container mx-auto px-4",children:[w.jsxs(ae.div,{className:"text-center mb-16",initial:"initial",whileInView:"animate",viewport:{once:!0},variants:n,children:[w.jsxs("h2",{className:"text-4xl lg:text-5xl font-bold text-white mb-6",children:["Formação ",w.jsx("span",{className:"text-yellow-300",children:"Acadêmica"})]}),w.jsx("p",{className:"text-xl text-blue-100 max-w-3xl mx-auto",children:"Uma trajetória acadêmica sólida e diversificada, construída ao longo de décadas de dedicação ao conhecimento"})]}),w.jsxs(ae.div,{className:"grid lg:grid-cols-2 gap-8",initial:"initial",whileInView:"animate",viewport:{once:!0},variants:r,children:[w.jsxs(ae.div,{className:"glass-effect rounded-3xl p-8",variants:n,children:[w.jsxs("div",{className:"flex items-center mb-6",children:[w.jsx(qs,{className:"h-8 w-8 text-yellow-300 mr-3"}),w.jsx("h3",{className:"text-2xl font-bold text-white",children:"Formação Regular"})]}),w.jsx("div",{className:"space-y-6",children:[{degree:"Pós-doutorando em Relações Internacionais",institution:"IRI-USP",status:"Em andamento"},{degree:"Doutor em Educação",institution:"PUC/SP",status:"Concluído"},{degree:"Mestrado em Ciências da Religião",institution:"Mackenzie/SP",status:"Concluído"},{degree:"Bacharel em Relações Internacionais",institution:"Faculdade Rio Branco",status:"Concluído"}].map((o,i)=>w.jsxs("div",{className:"border-l-4 border-yellow-300 pl-6 py-2",children:[w.jsx("h4",{className:"text-lg font-semibold text-white",children:o.degree}),w.jsx("p",{className:"text-blue-200",children:o.institution}),w.jsx("span",{className:"inline-block mt-2 px-3 py-1 bg-yellow-300 text-blue-900 rounded-full text-sm font-medium",children:o.status})]},i))})]}),w.jsxs(ae.div,{className:"glass-effect rounded-3xl p-8",variants:n,children:[w.jsxs("div",{className:"flex items-center mb-6",children:[w.jsx(tf,{className:"h-8 w-8 text-yellow-300 mr-3"}),w.jsx("h3",{className:"text-2xl font-bold text-white",children:"Honoris Causa"}),w.jsx("span",{className:"ml-3 text-sm bg-yellow-300 text-blue-900 px-3 py-1 rounded-full font-medium",children:"Albert Schweitzer University"})]}),w.jsx("div",{className:"space-y-4",children:["Doctor in International Economics","Doctor in International Relations","Doctor in Divinity","Master in Financial Management"].map((o,i)=>w.jsxs("div",{className:"flex items-center p-4 bg-white bg-opacity-10 rounded-xl",children:[w.jsx(UP,{className:"h-5 w-5 text-yellow-300 mr-3 flex-shrink-0"}),w.jsx("span",{className:"text-white font-medium",children:o})]},i))})]})]})]})}),w.jsx("section",{className:"py-20 bg-white",children:w.jsxs("div",{className:"container mx-auto px-4",children:[w.jsxs(ae.div,{className:"text-center mb-16",initial:"initial",whileInView:"animate",viewport:{once:!0},variants:n,children:[w.jsxs("h2",{className:"text-4xl lg:text-5xl font-bold text-gray-900 mb-6",children:["Ocupações ",w.jsx("span",{className:"text-gradient",children:"Atuais"})]}),w.jsx("p",{className:"text-xl text-gray-600 max-w-3xl mx-auto",children:"Liderando múltiplas instituições e iniciativas educacionais com excelência e inovação"})]}),w.jsx(ae.div,{className:"grid lg:grid-cols-2 gap-8",initial:"initial",whileInView:"animate",viewport:{once:!0},variants:r,children:[{title:"CEO da R2M Educacional",description:"Empresa de conteúdo educacional",icon:_P,color:"from-blue-500 to-blue-600"},{title:"Reitor da FFT",description:"Faculdade de Finanças e Tecnologia",icon:rf,color:"from-purple-500 to-purple-600"},{title:"Juiz Arbitral e Mediador Internacional",description:"Câmara Arbitral do Brasil",icon:FP,color:"from-green-500 to-green-600"},{title:"Diretor Executivo da CIAM-BRA",description:"Câmara Internacional Arbitral e de Mediação",icon:of,color:"from-orange-500 to-orange-600"},{title:"Diretor Executivo da Plenamente Editorial",description:"Produção e publicação de conteúdo acadêmico",icon:nf,color:"from-red-500 to-red-600"},{title:"Diretor Geral da Teseh Educacional",description:"Instituição de ensino e pesquisa",icon:qs,color:"from-indigo-500 to-indigo-600"}].map((o,i)=>w.jsxs(ae.div,{className:"bg-white rounded-3xl p-8 shadow-xl card-hover border border-gray-100",variants:n,children:[w.jsx("div",{className:`w-16 h-16 rounded-2xl bg-gradient-to-r ${o.color} flex items-center justify-center mb-6`,children:w.jsx(o.icon,{className:"h-8 w-8 text-white"})}),w.jsx("h3",{className:"text-xl font-bold text-gray-900 mb-3",children:o.title}),w.jsx("p",{className:"text-gray-600 leading-relaxed",children:o.description})]},i))}),w.jsxs(ae.div,{className:"mt-12 bg-gradient-to-r from-gray-50 to-blue-50 rounded-3xl p-8",initial:"initial",whileInView:"animate",viewport:{once:!0},variants:n,children:[w.jsx("h3",{className:"text-2xl font-bold text-gray-900 mb-6 text-center",children:"Outras Posições Acadêmicas"}),w.jsxs("div",{className:"grid md:grid-cols-2 gap-6",children:[w.jsxs("div",{className:"flex items-start space-x-4",children:[w.jsx("div",{className:"w-3 h-3 bg-blue-500 rounded-full mt-2 flex-shrink-0"}),w.jsxs("div",{children:[w.jsx("h4",{className:"font-semibold text-gray-900",children:"Coordenador e Professor de Pós-graduação"}),w.jsx("p",{className:"text-gray-600",children:"Centro Universitário Católico Ítalo-Brasileiro e Faculdade Unyleya"})]})]}),w.jsxs("div",{className:"flex items-start space-x-4",children:[w.jsx("div",{className:"w-3 h-3 bg-blue-500 rounded-full mt-2 flex-shrink-0"}),w.jsxs("div",{children:[w.jsx("h4",{className:"font-semibold text-gray-900",children:"Escritor-colaborador"}),w.jsx("p",{className:"text-gray-600",children:"Jornal O Estado de São Paulo (Estadão)"})]})]})]})]})]})}),w.jsx("section",{className:"py-20 bg-gradient-to-br from-indigo-900 via-purple-900 to-blue-900",children:w.jsxs("div",{className:"container mx-auto px-4",children:[w.jsxs(ae.div,{className:"text-center mb-16",initial:"initial",whileInView:"animate",viewport:{once:!0},variants:n,children:[w.jsxs("h2",{className:"text-4xl lg:text-5xl font-bold text-white mb-6",children:["Pesquisa e ",w.jsx("span",{className:"text-yellow-300",children:"Inovação"})]}),w.jsx("p",{className:"text-xl text-blue-100 max-w-3xl mx-auto",children:"Contribuindo para o avanço do conhecimento em Relações Internacionais e Educação"})]}),w.jsx(ae.div,{className:"max-w-4xl mx-auto",initial:"initial",whileInView:"animate",viewport:{once:!0},variants:n,children:w.jsxs("div",{className:"glass-effect rounded-3xl p-8 lg:p-12",children:[w.jsxs("div",{className:"flex items-center mb-8",children:[w.jsx(nf,{className:"h-10 w-10 text-yellow-300 mr-4"}),w.jsxs("div",{children:[w.jsx("h3",{className:"text-2xl font-bold text-white",children:"NUPRI - USP"}),w.jsx("p",{className:"text-blue-200",children:"Núcleo de Pesquisa de Relações Internacionais"})]})]}),w.jsx("p",{className:"text-lg text-blue-100 leading-relaxed mb-8",children:"Como pesquisador do prestigioso NUPRI da Universidade de São Paulo, desenvolvo estudos avançados em Relações Internacionais, contribuindo para a compreensão dos complexos cenários geopolíticos contemporâneos e suas implicações para o Brasil e o mundo."}),w.jsx("div",{className:"grid md:grid-cols-3 gap-6",children:["Geopolítica Internacional","Economia Global","Diplomacia Contemporânea"].map((o,i)=>w.jsx("div",{className:"text-center p-4 bg-white bg-opacity-10 rounded-xl",children:w.jsx("div",{className:"text-yellow-300 font-semibold",children:o})},i))})]})})]})}),w.jsx("section",{className:"py-20 bg-white",children:w.jsx("div",{className:"container mx-auto px-4",children:w.jsxs(ae.div,{className:"max-w-4xl mx-auto text-center",initial:"initial",whileInView:"animate",viewport:{once:!0},variants:n,children:[w.jsxs("h2",{className:"text-4xl lg:text-5xl font-bold text-gray-900 mb-6",children:["Vamos ",w.jsx("span",{className:"text-gradient",children:"Conversar"})]}),w.jsx("p",{className:"text-xl text-gray-600 mb-12 max-w-2xl mx-auto",children:"Interessado em colaborações acadêmicas, consultorias ou projetos educacionais? Entre em contato e vamos explorar oportunidades juntos."}),w.jsx("div",{className:"grid md:grid-cols-3 gap-8 mb-12",children:[{icon:Js,title:"Email",info:"contato@rogerio.edu.br"},{icon:BP,title:"Telefone",info:"+55 (11) 99999-9999"},{icon:zP,title:"Localização",info:"São Paulo, SP"}].map((o,i)=>w.jsxs(ae.div,{className:"flex flex-col items-center p-6 rounded-2xl bg-gradient-to-br from-blue-50 to-indigo-100",variants:n,children:[w.jsx(o.icon,{className:"h-8 w-8 text-blue-600 mb-4"}),w.jsx("h3",{className:"font-semibold text-gray-900 mb-2",children:o.title}),w.jsx("p",{className:"text-gray-600",children:o.info})]},i))}),w.jsxs(ai,{size:"lg",className:"bg-gradient-to-r from-blue-600 to-indigo-600 hover:from-blue-700 hover:to-indigo-700 text-white px-12 py-4 text-lg",onClick:t,children:[w.jsx(Js,{className:"mr-2 h-5 w-5"}),"Iniciar Conversa"]})]})})}),w.jsx("footer",{className:"bg-gray-900 text-white py-12",children:w.jsx("div",{className:"container mx-auto px-4",children:w.jsxs("div",{className:"text-center",children:[w.jsx("h3",{className:"text-2xl font-bold mb-4",children:"Prof. Dr. Rogério"}),w.jsx("p",{className:"text-gray-400 mb-6",children:"Transformando o futuro através da educação e pesquisa de excelência"}),w.jsx("div",{className:"flex justify-center space-x-6",children:w.jsx("span",{className:"text-gray-400",children:"© 2024 Prof. Dr. Rogério. Todos os direitos reservados."})})]})})})]})}ta.createRoot(document.getElementById("root")).render(w.jsx(he.StrictMode,{children:w.jsx(ZP,{})}));